Lines Matching defs:keyconf
2641 struct ieee80211_key_conf *keyconf,
2658 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) &
2671 u.cmd.common.key_offset = keyconf->hw_key_idx;
3716 struct ieee80211_key_conf *keyconf,
3722 if (WARN_ON((keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) ||
3723 (keyconf->keyidx != 4 && keyconf->keyidx != 5 &&
3724 keyconf->keyidx != 6 && keyconf->keyidx != 7) ||
3725 (keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC &&
3726 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_128 &&
3727 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_256)))
3731 keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC))
3734 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx);
3747 switch (keyconf->cipher) {
3759 memcpy(igtk_cmd.igtk, keyconf->key, keyconf->keylen);
3760 if (keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256)
3763 ieee80211_get_key_rx_seq(keyconf, 0, &seq);
3775 keyconf->keyidx >= 6 ? "B" : "",
3776 keyconf->keyidx, igtk_cmd.sta_id);
3823 struct ieee80211_key_conf *keyconf,
3839 !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
3848 if (keyconf->cipher == WLAN_CIPHER_SUITE_TKIP) {
3856 ieee80211_get_key_rx_seq(keyconf, 0, &seq);
3857 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k);
3859 return iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast,
3864 return iwl_mvm_send_sta_key(mvm, sta_id, keyconf, mcast,
3871 struct ieee80211_key_conf *keyconf,
3874 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE);
3883 keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) {
3915 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC ||
3916 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 ||
3917 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256) {
3918 ret = iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, false);
3930 * keyconf structure, because otherwise we cannot configure
3937 keyconf->hw_key_idx = key_offset;
3940 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast);
3950 if ((keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
3951 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) &&
3953 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf,
3956 __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast);
3965 keyconf->cipher, keyconf->keylen, keyconf->keyidx,
3973 struct ieee80211_key_conf *keyconf)
3975 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE);
3991 keyconf->keyidx, sta_id);
3993 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC ||
3994 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_128 ||
3995 keyconf->cipher == WLAN_CIPHER_SUITE_BIP_GMAC_256)
3996 return iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, true);
3998 if (!__test_and_clear_bit(keyconf->hw_key_idx, mvm->fw_key_table)) {
4000 keyconf->hw_key_idx);
4009 mvm->fw_key_deleted[keyconf->hw_key_idx] = 0;
4016 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast);
4021 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
4022 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104)
4023 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, !mcast);
4030 struct ieee80211_key_conf *keyconf,
4035 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE);
4043 iwl_mvm_send_sta_key(mvm, mvm_sta->deflink.sta_id, keyconf, mcast,
4044 iv32, phase1key, CMD_ASYNC, keyconf->hw_key_idx,
4332 struct ieee80211_key_conf *keyconf)
4361 keyconf->cipher = cipher;
4362 memcpy(keyconf->key, key, key_len);
4363 keyconf->keylen = key_len;
4364 keyconf->flags = IEEE80211_KEY_FLAG_PAIRWISE;
4371 iwl_mvm_get_sec_flags(mvm, vif, NULL, keyconf) |
4375 ret = iwl_mvm_mld_send_key(mvm, sta_mask, key_flags, keyconf);
4377 ret = iwl_mvm_send_sta_key(mvm, sta->sta_id, keyconf, false,