Lines Matching refs:keyconf

1243 				struct ieee80211_key_conf *keyconf, bool mcast,  in iwl_mvm_send_sta_key()  argument
1255 keyidx = (keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in iwl_mvm_send_sta_key()
1260 switch (keyconf->cipher) { in iwl_mvm_send_sta_key()
1266 memcpy(cmd.key, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1270 memcpy(cmd.key, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1277 memcpy(cmd.key + 3, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1281 memcpy(cmd.key, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_key()
1313 struct ieee80211_key_conf *keyconf, in iwl_mvm_send_sta_igtk() argument
1319 if (WARN_ON((keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC) || in iwl_mvm_send_sta_igtk()
1320 (keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) || in iwl_mvm_send_sta_igtk()
1321 (keyconf->keyidx != 4 && keyconf->keyidx != 5))) in iwl_mvm_send_sta_igtk()
1324 igtk_cmd.key_id = cpu_to_le32(keyconf->keyidx); in iwl_mvm_send_sta_igtk()
1333 memcpy(igtk_cmd.IGTK, keyconf->key, keyconf->keylen); in iwl_mvm_send_sta_igtk()
1334 ieee80211_get_key_rx_seq(keyconf, 0, &seq); in iwl_mvm_send_sta_igtk()
1377 struct ieee80211_key_conf *keyconf, in __iwl_mvm_set_sta_key() argument
1387 switch (keyconf->cipher) { in __iwl_mvm_set_sta_key()
1391 ieee80211_get_key_rx_seq(keyconf, 0, &seq); in __iwl_mvm_set_sta_key()
1392 ieee80211_get_tkip_rx_p1k(keyconf, addr, seq.tkip.iv32, p1k); in __iwl_mvm_set_sta_key()
1393 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
1399 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
1403 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in __iwl_mvm_set_sta_key()
1411 struct ieee80211_key_conf *keyconf, in __iwl_mvm_remove_sta_key() argument
1419 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in __iwl_mvm_remove_sta_key()
1428 cmd.key_offset = keyconf->hw_key_idx; in __iwl_mvm_remove_sta_key()
1451 struct ieee80211_key_conf *keyconf, in iwl_mvm_set_sta_key() argument
1454 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_set_sta_key()
1468 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in iwl_mvm_set_sta_key()
1469 ret = iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, false); in iwl_mvm_set_sta_key()
1504 keyconf->hw_key_idx = key_offset; in iwl_mvm_set_sta_key()
1507 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, key_offset, mcast); in iwl_mvm_set_sta_key()
1509 __clear_bit(keyconf->hw_key_idx, mvm->fw_key_table); in iwl_mvm_set_sta_key()
1519 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || in iwl_mvm_set_sta_key()
1520 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) { in iwl_mvm_set_sta_key()
1521 ret = __iwl_mvm_set_sta_key(mvm, vif, sta, keyconf, in iwl_mvm_set_sta_key()
1524 __clear_bit(keyconf->hw_key_idx, mvm->fw_key_table); in iwl_mvm_set_sta_key()
1525 __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast); in iwl_mvm_set_sta_key()
1531 keyconf->cipher, keyconf->keylen, keyconf->keyidx, in iwl_mvm_set_sta_key()
1539 struct ieee80211_key_conf *keyconf) in iwl_mvm_remove_sta_key() argument
1541 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_remove_sta_key()
1551 keyconf->keyidx, sta_id); in iwl_mvm_remove_sta_key()
1553 if (keyconf->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in iwl_mvm_remove_sta_key()
1554 return iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, true); in iwl_mvm_remove_sta_key()
1556 if (!__test_and_clear_bit(keyconf->hw_key_idx, mvm->fw_key_table)) { in iwl_mvm_remove_sta_key()
1558 keyconf->hw_key_idx); in iwl_mvm_remove_sta_key()
1567 mvm->fw_key_deleted[keyconf->hw_key_idx] = 0; in iwl_mvm_remove_sta_key()
1574 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, mcast); in iwl_mvm_remove_sta_key()
1579 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 || in iwl_mvm_remove_sta_key()
1580 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) in iwl_mvm_remove_sta_key()
1581 ret = __iwl_mvm_remove_sta_key(mvm, sta_id, keyconf, !mcast); in iwl_mvm_remove_sta_key()
1588 struct ieee80211_key_conf *keyconf, in iwl_mvm_update_tkip_key() argument
1594 bool mcast = !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE); in iwl_mvm_update_tkip_key()
1611 iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, mcast, in iwl_mvm_update_tkip_key()
1612 iv32, phase1key, CMD_ASYNC, keyconf->hw_key_idx); in iwl_mvm_update_tkip_key()