Lines Matching defs:keyconf

2648 				    struct ieee80211_key_conf *keyconf,
2665 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) &
2678 u.cmd.common.key_offset = keyconf->hw_key_idx;
3720 struct ieee80211_key_conf *keyconf,
3726 if (WARN_ON((keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) ||
3727 (keyconf->keyidx != 4 && keyconf->keyidx != 5 &&
3728 keyconf->keyidx != 6 && keyconf->keyidx != 7) ||
3729 (keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC &&
3730 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_128 &&
3731 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_256)))
3735 keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC))
3738 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx);
3751 switch (keyconf->cipher) {
3763 memcpy(igtk_cmd.igtk, keyconf->key, keyconf->keylen);
3764 if (keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256)
3767 ieee80211_get_key_rx_seq(keyconf, 0, &seq);
3779 keyconf->keyidx >= 6 ? "B" : "",
3780 keyconf->keyidx, igtk_cmd.sta_id);
3827 struct ieee80211_key_conf *keyconf,
3843 !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
3852 if (keyconf->cipher == WLAN_CIPHER_SUITE_TKIP) {
3860 ieee80211_get_key_rx_seq(keyconf, 0, &seq);
3861 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k);
3863 return iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast,
3868 return iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast,
3875 struct ieee80211_key_conf *keyconf,
3878 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE);
3887 keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) {
3919 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC ||
3920 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 ||
3921 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) {
3922 ret = iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, false);
3934 * keyconf structure, because otherwise we cannot configure
3941 keyconf->hw_key_idx = key_offset;
3944 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast);
3954 if ((keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
3955 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) &&
3957 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf,
3960 __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast);
3969 keyconf->cipher, keyconf->keylen, keyconf->keyidx,
3977 struct ieee80211_key_conf *keyconf)
3979 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE);
3995 keyconf->keyidx, sta_id);
3997 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC ||
3998 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 ||
3999 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256)
4000 return iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, true);
4002 if (!__test_and_clear_bit(keyconf->hw_key_idx, mvm->fw_key_table)) {
4004 keyconf->hw_key_idx);
4013 mvm->fw_key_deleted[keyconf->hw_key_idx] = 0;
4020 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast);
4025 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
4026 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104)
4027 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, !mcast);
4034 struct ieee80211_key_conf *keyconf,
4039 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE);
4047 iwl_mvm_send_sta_key(mvm, mvm_sta->deflink.sta_id, keyconf, mcast,
4048 iv32, phase1key, CMD_ASYNC, keyconf->hw_key_idx,
4335 struct ieee80211_key_conf *keyconf)
4364 keyconf->cipher = cipher;
4365 memcpy(keyconf->key, key, key_len);
4366 keyconf->keylen = key_len;
4367 keyconf->flags = IEEE80211_KEY_FLAG_PAIRWISE;
4374 iwl_mvm_get_sec_flags(mvm, vif, NULL, keyconf) |
4378 ret = iwl_mvm_mld_send_key(mvm, sta_mask, key_flags, keyconf);
4380 ret = iwl_mvm_send_sta_key(mvm, sta->sta_id, keyconf, false,