Home
last modified time | relevance | path

Searched refs:keyconf (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dsta.c996 struct ieee80211_key_conf *keyconf) in iwl_remove_default_wep_key() argument
1003 keyconf->keyidx); in iwl_remove_default_wep_key()
1005 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key()
1014 keyconf->keyidx, ret); in iwl_remove_default_wep_key()
1021 struct ieee80211_key_conf *keyconf) in iwl_set_default_wep_key() argument
1027 if (keyconf->keylen != WEP_KEY_LEN_128 && in iwl_set_default_wep_key()
1028 keyconf->keylen != WEP_KEY_LEN_64) { in iwl_set_default_wep_key()
1030 "Bad WEP key length %d\n", keyconf->keylen); in iwl_set_default_wep_key()
1034 keyconf->hw_key_idx = IWLAGN_HW_KEY_DEFAULT; in iwl_set_default_wep_key()
1036 ctx->wep_keys[keyconf->keyidx].key_size = keyconf->keylen; in iwl_set_default_wep_key()
[all …]
Dtx.c196 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwlagn_tx_cmd_build_hwcrypto() local
198 switch (keyconf->cipher) { in iwlagn_tx_cmd_build_hwcrypto()
201 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in iwlagn_tx_cmd_build_hwcrypto()
208 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwlagn_tx_cmd_build_hwcrypto()
216 (keyconf->keyidx & TX_CMD_SEC_MSK) << TX_CMD_SEC_SHIFT); in iwlagn_tx_cmd_build_hwcrypto()
218 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwlagn_tx_cmd_build_hwcrypto()
221 "with key %d\n", keyconf->keyidx); in iwlagn_tx_cmd_build_hwcrypto()
225 IWL_ERR(priv, "Unknown encode cipher %x\n", keyconf->cipher); in iwlagn_tx_cmd_build_hwcrypto()
Dagn.h360 struct ieee80211_key_conf *keyconf,
Dmac80211.c592 struct ieee80211_key_conf *keyconf, in iwlagn_mac_update_tkip_key() argument
598 iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); in iwlagn_mac_update_tkip_key()
/kernel/linux/linux-5.10/net/mac80211/
Dtkip.c143 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key_conf *keyconf, u64 pn) in ieee80211_tkip_add_iv() argument
146 *pos++ = (keyconf->keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv()
171 void ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_p1k_iv() argument
175 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_tkip_p1k_iv()
185 void ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_rx_p1k() argument
188 const u8 *tk = &keyconf->key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_get_tkip_rx_p1k()
196 void ieee80211_get_tkip_p2k(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_p2k() argument
200 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_tkip_p2k()
Dkey.c1145 void ieee80211_get_key_rx_seq(struct ieee80211_key_conf *keyconf, in ieee80211_get_key_rx_seq() argument
1151 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_key_rx_seq()
1198 void ieee80211_set_key_rx_seq(struct ieee80211_key_conf *keyconf, in ieee80211_set_key_rx_seq() argument
1204 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_set_key_rx_seq()
1254 void ieee80211_remove_key(struct ieee80211_key_conf *keyconf) in ieee80211_remove_key() argument
1258 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_remove_key()
1281 struct ieee80211_key_conf *keyconf) in ieee80211_gtk_rekey_add() argument
1294 key = ieee80211_key_alloc(keyconf->cipher, keyconf->keyidx, in ieee80211_gtk_rekey_add()
1295 keyconf->keylen, keyconf->key, in ieee80211_gtk_rekey_add()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dsta.c2418 struct ieee80211_key_conf *keyconf, in __iwl_mvm_remove_sta_key() argument
2435 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & in __iwl_mvm_remove_sta_key()
2448 u.cmd.common.key_offset = keyconf->hw_key_idx; in __iwl_mvm_remove_sta_key()
3358 struct ieee80211_key_conf *keyconf, in iwl_mvm_send_sta_igtk() argument
3364 if (WARN_ON((keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE) || in iwl_mvm_send_sta_igtk()
3365 (keyconf->keyidx != 4 && keyconf->keyidx != 5) || in iwl_mvm_send_sta_igtk()
3366 (keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC && in iwl_mvm_send_sta_igtk()
3367 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_128 && in iwl_mvm_send_sta_igtk()
3368 keyconf->cipher != WLAN_CIPHER_SUITE_BIP_GMAC_256))) in iwl_mvm_send_sta_igtk()
3372 keyconf->cipher != WLAN_CIPHER_SUITE_AES_CMAC)) in iwl_mvm_send_sta_igtk()
[all …]
Dsta.h511 struct ieee80211_key_conf *keyconf,
516 struct ieee80211_key_conf *keyconf);
520 struct ieee80211_key_conf *keyconf,
Dtx.c419 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_pn() local
422 pn = atomic64_inc_return(&keyconf->tx_pn); in iwl_mvm_set_tx_cmd_pn()
425 crypto_hdr[3] = 0x20 | (keyconf->keyidx << 6); in iwl_mvm_set_tx_cmd_pn()
442 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_crypto() local
447 switch (keyconf->cipher) { in iwl_mvm_set_tx_cmd_crypto()
455 pn = atomic64_inc_return(&keyconf->tx_pn); in iwl_mvm_set_tx_cmd_crypto()
456 ieee80211_tkip_add_iv(crypto_hdr, keyconf, pn); in iwl_mvm_set_tx_cmd_crypto()
457 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwl_mvm_set_tx_cmd_crypto()
465 ((keyconf->keyidx << TX_CMD_SEC_WEP_KEY_IDX_POS) & in iwl_mvm_set_tx_cmd_crypto()
468 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_crypto()
[all …]
Dmvm.h1543 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_ccmp() local
1546 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_ccmp()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D4965-mac.c1601 struct ieee80211_key_conf *keyconf = info->control.hw_key; in il4965_tx_cmd_build_hwcrypto() local
1603 switch (keyconf->cipher) { in il4965_tx_cmd_build_hwcrypto()
1606 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1614 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in il4965_tx_cmd_build_hwcrypto()
1623 (TX_CMD_SEC_WEP | (keyconf->keyidx & TX_CMD_SEC_MSK) << in il4965_tx_cmd_build_hwcrypto()
1626 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1629 keyconf->keyidx); in il4965_tx_cmd_build_hwcrypto()
1633 IL_ERR("Unknown encode cipher %x\n", keyconf->cipher); in il4965_tx_cmd_build_hwcrypto()
3176 struct ieee80211_key_conf *keyconf) in il4965_remove_default_wep_key() argument
3179 int idx = keyconf->keyidx; in il4965_remove_default_wep_key()
[all …]
D3945-mac.c118 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_ccmp_dynamic_key_info() argument
125 key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS); in il3945_set_ccmp_dynamic_key_info()
130 keyconf->flags |= IEEE80211_KEY_FLAG_GENERATE_IV; in il3945_set_ccmp_dynamic_key_info()
131 keyconf->hw_key_idx = keyconf->keyidx; in il3945_set_ccmp_dynamic_key_info()
135 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il3945_set_ccmp_dynamic_key_info()
136 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il3945_set_ccmp_dynamic_key_info()
137 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
139 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
166 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_tkip_dynamic_key_info() argument
173 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_wep_dynamic_key_info() argument
[all …]
D4965.h125 struct ieee80211_key_conf *keyconf,
163 struct ieee80211_key_conf *keyconf,
/kernel/linux/linux-5.10/include/net/
Dmac80211.h5159 void ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *keyconf,
5173 static inline void ieee80211_get_tkip_p1k(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_p1k() argument
5180 ieee80211_get_tkip_p1k_iv(keyconf, iv32, p1k); in ieee80211_get_tkip_p1k()
5194 void ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf,
5208 void ieee80211_get_tkip_p2k(struct ieee80211_key_conf *keyconf,
5224 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key_conf *keyconf, u64 pn);
5242 void ieee80211_get_key_rx_seq(struct ieee80211_key_conf *keyconf,
5262 void ieee80211_set_key_rx_seq(struct ieee80211_key_conf *keyconf,
5276 void ieee80211_remove_key(struct ieee80211_key_conf *keyconf);
5309 struct ieee80211_key_conf *keyconf);
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dtrx.c439 struct ieee80211_key_conf *keyconf; in rtl92se_tx_fill_desc() local
441 keyconf = info->control.hw_key; in rtl92se_tx_fill_desc()
442 switch (keyconf->cipher) { in rtl92se_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dtrx.c598 struct ieee80211_key_conf *keyconf; in rtl88ee_tx_fill_desc() local
600 keyconf = info->control.hw_key; in rtl88ee_tx_fill_desc()
601 switch (keyconf->cipher) { in rtl88ee_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c593 struct ieee80211_key_conf *keyconf; in rtl92de_tx_fill_desc() local
595 keyconf = info->control.hw_key; in rtl92de_tx_fill_desc()
596 switch (keyconf->cipher) { in rtl92de_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dtrx.c450 struct ieee80211_key_conf *keyconf = in rtl8723e_tx_fill_desc() local
453 switch (keyconf->cipher) { in rtl8723e_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dtrx.c450 struct ieee80211_key_conf *keyconf = in rtl92ce_tx_fill_desc() local
453 switch (keyconf->cipher) { in rtl92ce_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.c525 struct ieee80211_key_conf *keyconf = in rtl8723be_tx_fill_desc() local
527 switch (keyconf->cipher) { in rtl8723be_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c549 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92cu_tx_fill_desc() local
551 switch (keyconf->cipher) { in rtl92cu_tx_fill_desc()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dmain.c936 struct ieee80211_key_conf *keyconf, in b43_op_update_tkip_key() argument
942 int index = keyconf->hw_key_idx; in b43_op_update_tkip_key()
1003 struct ieee80211_key_conf *keyconf) in b43_key_write() argument
1021 B43_WARN_ON(dev->key[i].keyconf == keyconf); in b43_key_write()
1033 if (!dev->key[i].keyconf) { in b43_key_write()
1052 keyconf->hw_key_idx = index; in b43_key_write()
1053 dev->key[index].keyconf = keyconf; in b43_key_write()
1068 dev->key[index].keyconf = NULL; in b43_key_clear()
1111 index, (key->keyconf == NULL) ? " " : "*"); in b43_dump_keymemory()
Db43.h702 struct ieee80211_key_conf *keyconf; member
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/
Db43legacy.h560 void *keyconf; member
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.c769 struct ieee80211_key_conf *keyconf = in rtl8821ae_tx_fill_desc() local
771 switch (keyconf->cipher) { in rtl8821ae_tx_fill_desc()

12