Lines Matching refs:keyconf

1190 				struct ieee80211_key_conf *keyconf, bool mcast,  in iwl_mvm_send_sta_key()  argument
1201 keyidx = (keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in iwl_mvm_send_sta_key()
1206 switch (keyconf->cipher) { in iwl_mvm_send_sta_key()
1212 memcpy(cmd.key, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1216 memcpy(cmd.key, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1223 memcpy(cmd.key + 3, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1227 memcpy(cmd.key, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1233 cmd.key_offset = keyconf->hw_key_idx; in iwl_mvm_send_sta_key()
1259 struct ieee80211_key_conf *keyconf, in iwl_mvm_send_sta_igtk() argument
1265 if (WARN_ON((keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC) || in iwl_mvm_send_sta_igtk()
1266 (keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) || in iwl_mvm_send_sta_igtk()
1267 (keyconf->keyidx != 4 && keyconf->keyidx != 5))) in iwl_mvm_send_sta_igtk()
1270 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); in iwl_mvm_send_sta_igtk()
1279 memcpy(igtk_cmd.IGTK, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_igtk()
1280 ieee80211_aes_cmac_calculate_k1_k2(keyconf, in iwl_mvm_send_sta_igtk()
1282 ieee80211_get_key_rx_seq(keyconf, 0, &seq); in iwl_mvm_send_sta_igtk()
1325 struct ieee80211_key_conf *keyconf, in __iwl_mvm_set_sta_key() argument
1334 switch (keyconf->cipher) { in __iwl_mvm_set_sta_key()
1338 ieee80211_get_key_rx_seq(keyconf, 0, &seq); in __iwl_mvm_set_sta_key()
1339 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in __iwl_mvm_set_sta_key()
1340 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
1346 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
1350 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
1358 struct ieee80211_key_conf *keyconf, in __iwl_mvm_remove_sta_key() argument
1366 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in __iwl_mvm_remove_sta_key()
1375 cmd.key_offset = keyconf->hw_key_idx; in __iwl_mvm_remove_sta_key()
1398 struct ieee80211_key_conf *keyconf, in iwl_mvm_set_sta_key() argument
1401 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_set_sta_key()
1414 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in iwl_mvm_set_sta_key()
1415 ret = iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, false); in iwl_mvm_set_sta_key()
1441 keyconf->hw_key_idx = iwl_mvm_set_fw_key_idx(mvm); in iwl_mvm_set_sta_key()
1442 if (keyconf->hw_key_idx == STA_KEY_IDX_INVALID) in iwl_mvm_set_sta_key()
1446 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, mcast); in iwl_mvm_set_sta_key()
1448 __clear_bit(keyconf->hw_key_idx, mvm->fw_key_table); in iwl_mvm_set_sta_key()
1458 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || in iwl_mvm_set_sta_key()
1459 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) { in iwl_mvm_set_sta_key()
1460 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, !mcast); in iwl_mvm_set_sta_key()
1462 __clear_bit(keyconf->hw_key_idx, mvm->fw_key_table); in iwl_mvm_set_sta_key()
1463 __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast); in iwl_mvm_set_sta_key()
1469 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_mvm_set_sta_key()
1477 struct ieee80211_key_conf *keyconf) in iwl_mvm_remove_sta_key() argument
1479 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_remove_sta_key()
1489 keyconf->keyidx, sta_id); in iwl_mvm_remove_sta_key()
1491 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in iwl_mvm_remove_sta_key()
1492 return iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, true); in iwl_mvm_remove_sta_key()
1494 if (!__test_and_clear_bit(keyconf->hw_key_idx, mvm->fw_key_table)) { in iwl_mvm_remove_sta_key()
1496 keyconf->hw_key_idx); in iwl_mvm_remove_sta_key()
1523 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast); in iwl_mvm_remove_sta_key()
1528 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || in iwl_mvm_remove_sta_key()
1529 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) in iwl_mvm_remove_sta_key()
1530 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, !mcast); in iwl_mvm_remove_sta_key()
1537 struct ieee80211_key_conf *keyconf, in iwl_mvm_update_tkip_key() argument
1543 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_update_tkip_key()
1559 iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in iwl_mvm_update_tkip_key()