Lines Matching full:conf
138 !(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | in ieee80211_key_enable_hw_accel()
156 if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) && in ieee80211_key_enable_hw_accel()
168 if (!(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE)) { in ieee80211_key_enable_hw_accel()
174 if (key->conf.link_id >= 0 && sdata->vif.active_links && in ieee80211_key_enable_hw_accel()
175 !(sdata->vif.active_links & BIT(key->conf.link_id))) in ieee80211_key_enable_hw_accel()
179 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_enable_hw_accel()
184 if (!(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | in ieee80211_key_enable_hw_accel()
189 WARN_ON((key->conf.flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE) && in ieee80211_key_enable_hw_accel()
190 (key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)); in ieee80211_key_enable_hw_accel()
192 WARN_ON((key->conf.flags & IEEE80211_KEY_FLAG_PUT_MIC_SPACE) && in ieee80211_key_enable_hw_accel()
193 (key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)); in ieee80211_key_enable_hw_accel()
201 key->conf.keyidx, in ieee80211_key_enable_hw_accel()
205 switch (key->conf.cipher) { in ieee80211_key_enable_hw_accel()
247 if (key->conf.link_id >= 0 && sdata->vif.active_links && in ieee80211_key_disable_hw_accel()
248 !(sdata->vif.active_links & BIT(key->conf.link_id))) in ieee80211_key_disable_hw_accel()
251 if (!(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | in ieee80211_key_disable_hw_accel()
258 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_disable_hw_accel()
263 key->conf.keyidx, in ieee80211_key_disable_hw_accel()
276 sta->ptk_idx = key->conf.keyidx; in _ieee80211_set_tx_key()
299 if (new->conf.flags & IEEE80211_KEY_FLAG_NO_AUTO_TX) { in ieee80211_pairwise_rekey()
458 idx = new->conf.keyidx; in ieee80211_key_replace()
459 is_wep = new->conf.cipher == WLAN_CIPHER_SUITE_WEP40 || in ieee80211_key_replace()
460 new->conf.cipher == WLAN_CIPHER_SUITE_WEP104; in ieee80211_key_replace()
461 link_id = new->conf.link_id; in ieee80211_key_replace()
463 idx = old->conf.keyidx; in ieee80211_key_replace()
464 is_wep = old->conf.cipher == WLAN_CIPHER_SUITE_WEP40 || in ieee80211_key_replace()
465 old->conf.cipher == WLAN_CIPHER_SUITE_WEP104; in ieee80211_key_replace()
466 link_id = old->conf.link_id; in ieee80211_key_replace()
469 if (WARN(old && old->conf.link_id != link_id, in ieee80211_key_replace()
471 old->conf.link_id, link_id)) in ieee80211_key_replace()
494 WARN_ON(new && old && new->conf.keyidx != old->conf.keyidx); in ieee80211_key_replace()
527 !(new->conf.flags & IEEE80211_KEY_FLAG_NO_AUTO_TX)) in ieee80211_key_replace()
567 __ieee80211_set_default_key(link, new->conf.keyidx, in ieee80211_key_replace()
570 __ieee80211_set_default_key(link, new->conf.keyidx, in ieee80211_key_replace()
574 new->conf.keyidx); in ieee80211_key_replace()
577 new->conf.keyidx); in ieee80211_key_replace()
607 key->conf.flags = 0; in ieee80211_key_alloc()
610 key->conf.link_id = -1; in ieee80211_key_alloc()
611 key->conf.cipher = cipher; in ieee80211_key_alloc()
612 key->conf.keyidx = idx; in ieee80211_key_alloc()
613 key->conf.keylen = key_len; in ieee80211_key_alloc()
617 key->conf.iv_len = IEEE80211_WEP_IV_LEN; in ieee80211_key_alloc()
618 key->conf.icv_len = IEEE80211_WEP_ICV_LEN; in ieee80211_key_alloc()
621 key->conf.iv_len = IEEE80211_TKIP_IV_LEN; in ieee80211_key_alloc()
622 key->conf.icv_len = IEEE80211_TKIP_ICV_LEN; in ieee80211_key_alloc()
634 key->conf.iv_len = IEEE80211_CCMP_HDR_LEN; in ieee80211_key_alloc()
635 key->conf.icv_len = IEEE80211_CCMP_MIC_LEN; in ieee80211_key_alloc()
655 key->conf.iv_len = IEEE80211_CCMP_256_HDR_LEN; in ieee80211_key_alloc()
656 key->conf.icv_len = IEEE80211_CCMP_256_MIC_LEN; in ieee80211_key_alloc()
674 key->conf.iv_len = 0; in ieee80211_key_alloc()
676 key->conf.icv_len = sizeof(struct ieee80211_mmie); in ieee80211_key_alloc()
678 key->conf.icv_len = sizeof(struct ieee80211_mmie_16); in ieee80211_key_alloc()
697 key->conf.iv_len = 0; in ieee80211_key_alloc()
698 key->conf.icv_len = sizeof(struct ieee80211_mmie_16); in ieee80211_key_alloc()
716 key->conf.iv_len = IEEE80211_GCMP_HDR_LEN; in ieee80211_key_alloc()
717 key->conf.icv_len = IEEE80211_GCMP_MIC_LEN; in ieee80211_key_alloc()
734 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc()
742 switch (key->conf.cipher) { in ieee80211_key_free_common()
816 if (!old || new->conf.keylen != old->conf.keylen) in ieee80211_key_identical()
819 tk_old = old->conf.key; in ieee80211_key_identical()
820 tk_new = new->conf.key; in ieee80211_key_identical()
828 new->conf.cipher == WLAN_CIPHER_SUITE_TKIP && in ieee80211_key_identical()
829 new->conf.keylen == WLAN_KEY_LEN_TKIP && in ieee80211_key_identical()
830 !(new->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE)) { in ieee80211_key_identical()
839 return !crypto_memneq(tk_old, tk_new, new->conf.keylen); in ieee80211_key_identical()
849 int idx = key->conf.keyidx; in ieee80211_key_link()
850 bool pairwise = key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE; in ieee80211_key_link()
872 if ((alt_key && alt_key->conf.cipher != key->conf.cipher) || in ieee80211_key_link()
873 (old_key && old_key->conf.cipher != key->conf.cipher)) { in ieee80211_key_link()
879 int link_id = key->conf.link_id; in ieee80211_key_link()
903 if (old_key && old_key->conf.cipher != key->conf.cipher) { in ieee80211_key_link()
930 key->conf.flags |= IEEE80211_KEY_FLAG_SPP_AMSDU; in ieee80211_key_link()
960 key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, in ieee80211_key_free()
1007 &key->conf, iter_data); in ieee80211_key_iter()
1091 key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, in ieee80211_free_keys_iface()
1109 if (key->conf.link_id != link->link_id) in ieee80211_remove_link_keys()
1112 key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, in ieee80211_remove_link_keys()
1189 key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, in ieee80211_free_sta_keys()
1200 key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE, in ieee80211_free_sta_keys()
1253 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_key_rx_seq()
1255 switch (key->conf.cipher) { in ieee80211_get_key_rx_seq()
1306 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_set_key_rx_seq()
1308 switch (key->conf.cipher) { in ieee80211_set_key_rx_seq()
1360 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_remove_key()
1371 if (!(key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | in ieee80211_remove_key()
1410 key->conf.flags |= IEEE80211_KEY_FLAG_RX_MGMT; in ieee80211_gtk_rekey_add()
1412 key->conf.link_id = link_id; in ieee80211_gtk_rekey_add()
1418 return &key->conf; in ieee80211_gtk_rekey_add()
1426 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_key_mic_failure()
1428 switch (key->conf.cipher) { in ieee80211_key_mic_failure()
1448 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_key_replay()
1450 switch (key->conf.cipher) { in ieee80211_key_replay()
1479 if (key->conf.link_id < 0 || in ieee80211_key_switch_links()
1480 !(del_links_mask & BIT(key->conf.link_id))) in ieee80211_key_switch_links()
1490 if (key->conf.link_id < 0 || in ieee80211_key_switch_links()
1491 !(add_links_mask & BIT(key->conf.link_id))) in ieee80211_key_switch_links()