Lines Matching defs:key

736 	 * Reset key cache to sane defaults (all entries cleared) instead of
894 /* No more TXQ frames point to this key cache entry, so delete it. */
976 /* Clear key cache entries explicitly to get rid of any potentially
1607 int key;
1615 key = ath_key_config(common, vif, sta, &ps_key);
1616 if (key > 0) {
1617 an->ps_key = key;
1618 an->key_idx[0] = key;
1765 struct ieee80211_key_conf *key)
1777 (key->cipher == WLAN_CIPHER_SUITE_TKIP ||
1778 key->cipher == WLAN_CIPHER_SUITE_CCMP) &&
1779 !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
1782 * could be optimized in the future to use a modified key cache
1790 /* There may be MPDUs queued for the outgoing PTK key. Flush queues to
1791 * make sure these are not send unencrypted or with a wrong (new) key
1793 if (cmd == DISABLE_KEY && key->flags & IEEE80211_KEY_FLAG_PAIRWISE) {
1805 /* Delete pending key cache entries if no more frames are pointing to
1816 key->hw_key_idx = 0;
1817 ret = ath_key_config(common, vif, sta, key);
1819 key->hw_key_idx = ret;
1821 key->flags |= IEEE80211_KEY_FLAG_GENERATE_IV;
1822 if (key->cipher == WLAN_CIPHER_SUITE_TKIP)
1823 key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
1825 key->cipher == WLAN_CIPHER_SUITE_CCMP)
1826 key->flags |= IEEE80211_KEY_FLAG_SW_MGMT_TX;
1829 if (an && key->hw_key_idx) {
1833 an->key_idx[i] = key->hw_key_idx;
1840 if (ath9k_txq_has_key(sc, key->hw_key_idx)) {
1841 /* Delay key cache entry deletion until there are no
1844 set_bit(key->hw_key_idx, sc->sc_ah->pending_del_keymap);
1845 ath_hw_keysetmac(common, key->hw_key_idx, NULL);
1847 ath_key_delete(common, key->hw_key_idx);
1851 if (an->key_idx[i] != key->hw_key_idx)
1857 key->hw_key_idx = 0;