Lines Matching refs:keyconf

2612 				    struct ieee80211_key_conf *keyconf,  in __iwl_mvm_remove_sta_key()  argument
2629 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in __iwl_mvm_remove_sta_key()
2642 u.cmd.common.key_offset = keyconf->hw_key_idx; in __iwl_mvm_remove_sta_key()
3702 struct ieee80211_key_conf *keyconf, in iwl_mvm_send_sta_igtk() argument
3708 if (WARN_ON((keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) || in iwl_mvm_send_sta_igtk()
3709 (keyconf->keyidx != 4 && keyconf->keyidx != 5 && in iwl_mvm_send_sta_igtk()
3710 keyconf->keyidx != 6 && keyconf->keyidx != 7) || in iwl_mvm_send_sta_igtk()
3711 (keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC && in iwl_mvm_send_sta_igtk()
3712 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_128 && in iwl_mvm_send_sta_igtk()
3713 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_256))) in iwl_mvm_send_sta_igtk()
3717 keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC)) in iwl_mvm_send_sta_igtk()
3720 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); in iwl_mvm_send_sta_igtk()
3733 switch (keyconf->cipher) { in iwl_mvm_send_sta_igtk()
3745 memcpy(igtk_cmd.igtk, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_igtk()
3746 if (keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) in iwl_mvm_send_sta_igtk()
3749 ieee80211_get_key_rx_seq(keyconf, 0, &seq); in iwl_mvm_send_sta_igtk()
3761 keyconf->keyidx >= 6 ? "B" : "", in iwl_mvm_send_sta_igtk()
3762 keyconf->keyidx, igtk_cmd.sta_id); in iwl_mvm_send_sta_igtk()
3809 struct ieee80211_key_conf *keyconf, in __iwl_mvm_set_sta_key() argument
3825 !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { in __iwl_mvm_set_sta_key()
3834 if (keyconf->cipher == WLAN_CIPHER_SUITE_TKIP) { in __iwl_mvm_set_sta_key()
3842 ieee80211_get_key_rx_seq(keyconf, 0, &seq); in __iwl_mvm_set_sta_key()
3843 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in __iwl_mvm_set_sta_key()
3845 return iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast, in __iwl_mvm_set_sta_key()
3850 return iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast, in __iwl_mvm_set_sta_key()
3857 struct ieee80211_key_conf *keyconf, in iwl_mvm_set_sta_key() argument
3860 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_set_sta_key()
3869 keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) { in iwl_mvm_set_sta_key()
3901 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC || in iwl_mvm_set_sta_key()
3902 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || in iwl_mvm_set_sta_key()
3903 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) { in iwl_mvm_set_sta_key()
3904 ret = iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, false); in iwl_mvm_set_sta_key()
3923 keyconf->hw_key_idx = key_offset; in iwl_mvm_set_sta_key()
3926 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast); in iwl_mvm_set_sta_key()
3936 if ((keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || in iwl_mvm_set_sta_key()
3937 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) && in iwl_mvm_set_sta_key()
3939 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, in iwl_mvm_set_sta_key()
3942 __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast); in iwl_mvm_set_sta_key()
3951 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_mvm_set_sta_key()
3959 struct ieee80211_key_conf *keyconf) in iwl_mvm_remove_sta_key() argument
3961 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_remove_sta_key()
3977 keyconf->keyidx, sta_id); in iwl_mvm_remove_sta_key()
3979 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC || in iwl_mvm_remove_sta_key()
3980 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 || in iwl_mvm_remove_sta_key()
3981 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) in iwl_mvm_remove_sta_key()
3982 return iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, true); in iwl_mvm_remove_sta_key()
3984 if (!__test_and_clear_bit(keyconf->hw_key_idx, mvm->fw_key_table)) { in iwl_mvm_remove_sta_key()
3986 keyconf->hw_key_idx); in iwl_mvm_remove_sta_key()
3995 mvm->fw_key_deleted[keyconf->hw_key_idx] = 0; in iwl_mvm_remove_sta_key()
4002 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast); in iwl_mvm_remove_sta_key()
4007 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || in iwl_mvm_remove_sta_key()
4008 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) in iwl_mvm_remove_sta_key()
4009 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, !mcast); in iwl_mvm_remove_sta_key()
4016 struct ieee80211_key_conf *keyconf, in iwl_mvm_update_tkip_key() argument
4021 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_update_tkip_key()
4029 iwl_mvm_send_sta_key(mvm, mvm_sta->deflink.sta_id, keyconf, mcast, in iwl_mvm_update_tkip_key()
4030 iv32, phase1key, CMD_ASYNC, keyconf->hw_key_idx, in iwl_mvm_update_tkip_key()
4320 struct ieee80211_key_conf *keyconf; in iwl_mvm_add_pasn_sta() local
4345 keyconf = kzalloc(sizeof(*keyconf) + key_len, GFP_KERNEL); in iwl_mvm_add_pasn_sta()
4346 if (!keyconf) { in iwl_mvm_add_pasn_sta()
4351 keyconf->cipher = cipher; in iwl_mvm_add_pasn_sta()
4352 memcpy(keyconf->key, key, key_len); in iwl_mvm_add_pasn_sta()
4353 keyconf->keylen = key_len; in iwl_mvm_add_pasn_sta()
4354 keyconf->flags = IEEE80211_KEY_FLAG_PAIRWISE; in iwl_mvm_add_pasn_sta()
4361 iwl_mvm_get_sec_flags(mvm, vif, NULL, keyconf) | in iwl_mvm_add_pasn_sta()
4365 ret = iwl_mvm_mld_send_key(mvm, sta_mask, key_flags, keyconf); in iwl_mvm_add_pasn_sta()
4367 ret = iwl_mvm_send_sta_key(mvm, sta->sta_id, keyconf, false, in iwl_mvm_add_pasn_sta()
4371 kfree(keyconf); in iwl_mvm_add_pasn_sta()