Lines Matching defs:keyconf

14 				    struct ieee80211_key_conf *keyconf)
21 if (keyconf->link_id >= 0) {
22 link_info = mvmvif->link[keyconf->link_id];
29 !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
31 if (keyconf->keyidx >= 4)
50 if (!sta && (keyconf->link_id >= 0 || !ieee80211_vif_is_mld(vif)))
56 return iwl_mvm_sta_fw_id_mask(mvm, sta, keyconf->link_id);
62 struct ieee80211_key_conf *keyconf)
65 bool pairwise = keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE;
66 bool igtk = keyconf->keyidx == 4 || keyconf->keyidx == 5;
74 switch (keyconf->cipher) {
111 if (keyconf->flags & IEEE80211_KEY_FLAG_SPP_AMSDU)
185 struct ieee80211_key_conf *keyconf)
191 .u.add.key_id = cpu_to_le32(keyconf->keyidx),
193 .u.add.tx_seq = cpu_to_le64(atomic64_read(&keyconf->tx_pn)),
198 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
199 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104)
202 if (WARN_ON(keyconf->keylen > max_key_len))
208 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
209 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104)
210 memcpy(cmd.u.add.key + IWL_SEC_WEP_KEY_OFFSET, keyconf->key,
211 keyconf->keylen);
213 memcpy(cmd.u.add.key, keyconf->key, keyconf->keylen);
215 if (keyconf->cipher == WLAN_CIPHER_SUITE_TKIP) {
217 keyconf->key + NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY,
220 keyconf->key + NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY,
232 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
233 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) {
238 keyconf->keyidx, 0);
247 struct ieee80211_key_conf *keyconf)
249 u32 sta_mask = iwl_mvm_get_sec_sta_mask(mvm, vif, sta, keyconf);
250 u32 key_flags = iwl_mvm_get_sec_flags(mvm, vif, sta, keyconf);
255 if (keyconf->keyidx == 4 || keyconf->keyidx == 5) {
259 if (keyconf->link_id >= 0)
260 link_id = keyconf->link_id;
280 ret = iwl_mvm_mld_send_key(mvm, sta_mask, key_flags, keyconf);
285 mvm_link->igtk = keyconf;
291 keyconf->hw_key_idx = 0;
299 struct ieee80211_key_conf *keyconf,
302 u32 sta_mask = iwl_mvm_get_sec_sta_mask(mvm, vif, sta, keyconf);
303 u32 key_flags = iwl_mvm_get_sec_flags(mvm, vif, sta, keyconf);
310 if (keyconf->keyidx == 4 || keyconf->keyidx == 5) {
315 if (keyconf->link_id >= 0)
316 link_id = keyconf->link_id;
322 if (mvm_link->igtk == keyconf) {
329 ret = __iwl_mvm_sec_key_del(mvm, sta_mask, key_flags, keyconf->keyidx,
335 if (keyconf->cipher == WLAN_CIPHER_SUITE_WEP40 ||
336 keyconf->cipher == WLAN_CIPHER_SUITE_WEP104) {
339 keyconf->keyidx, flags);
348 struct ieee80211_key_conf *keyconf)
350 u32 key_flags = iwl_mvm_get_sec_flags(mvm, vif, NULL, keyconf) |
356 return __iwl_mvm_sec_key_del(mvm, sta_mask, key_flags, keyconf->keyidx,
363 struct ieee80211_key_conf *keyconf)
365 return _iwl_mvm_sec_key_del(mvm, vif, sta, keyconf, 0);