Home
last modified time | relevance | path

Searched refs:hw_key (Results 1 – 39 of 39) sorted by relevance

/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00crypto.c51 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in rt2x00crypto_create_tx_descriptor() local
53 if (!rt2x00_has_cap_hw_crypto(rt2x00dev) || !hw_key) in rt2x00crypto_create_tx_descriptor()
58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
60 if (hw_key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in rt2x00crypto_create_tx_descriptor()
63 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
65 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
67 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) in rt2x00crypto_create_tx_descriptor()
70 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) in rt2x00crypto_create_tx_descriptor()
78 struct ieee80211_key_conf *key = tx_info->control.hw_key; in rt2x00crypto_tx_overhead()
Drt2x00mac.c74 rts_info->control.hw_key = NULL; in rt2x00mac_tx_rts_cts()
/linux-4.4.14/net/mac80211/
Dwpa.c54 info->control.hw_key = NULL; in ieee80211_tx_h_michael_mic_add()
57 if (info->control.hw_key && in ieee80211_tx_h_michael_mic_add()
66 if (!info->control.hw_key) in ieee80211_tx_h_michael_mic_add()
196 if (info->control.hw_key && in tkip_encrypt_skb()
197 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) && in tkip_encrypt_skb()
198 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in tkip_encrypt_skb()
206 if (info->control.hw_key) in tkip_encrypt_skb()
220 if (info->control.hw_key && in tkip_encrypt_skb()
221 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in tkip_encrypt_skb()
233 if (info->control.hw_key) in tkip_encrypt_skb()
[all …]
Dwep.c109 if (info->control.hw_key && in ieee80211_wep_add_iv()
110 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in ieee80211_wep_add_iv()
306 struct ieee80211_key_conf *hw_key = info->control.hw_key; in wep_encrypt_skb() local
308 if (!hw_key) { in wep_encrypt_skb()
313 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in wep_encrypt_skb()
314 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in wep_encrypt_skb()
Dtx.c647 info->control.hw_key = &tx->key->conf; in ieee80211_tx_h_select_key()
2798 info->control.hw_key = &fast_tx->key->conf; in ieee80211_xmit_fast()
/linux-4.4.14/drivers/net/wireless/p54/
Dtxrx.c804 if (info->control.hw_key) { in p54_tx_80211()
806 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
901 if (info->control.hw_key) { in p54_tx_80211()
902 txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); in p54_tx_80211()
903 txhdr->key_len = min((u8)16, info->control.hw_key->keylen); in p54_tx_80211()
904 memcpy(txhdr->key, info->control.hw_key->key, txhdr->key_len); in p54_tx_80211()
905 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in p54_tx_80211()
908 memcpy(skb_put(skb, 8), &(info->control.hw_key->key in p54_tx_80211()
912 len += info->control.hw_key->icv_len; in p54_tx_80211()
913 memset(skb_put(skb, info->control.hw_key->icv_len), 0, in p54_tx_80211()
[all …]
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
Dtx.c194 if (control->control.hw_key && in wl1251_tx_send_packet()
195 control->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_send_packet()
314 if (info->control.hw_key) { in wl1251_tx_frame()
318 idx = info->control.hw_key->hw_key_idx; in wl1251_tx_frame()
441 if (info->control.hw_key && in wl1251_tx_packet_cb()
442 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_packet_cb()
/linux-4.4.14/drivers/net/wireless/ti/wl18xx/
Dtx.c126 info->control.hw_key && in wl18xx_tx_complete_packet()
127 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl18xx_tx_complete_packet()
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dtx.c401 info->control.hw_key && in wl1271_prepare_tx_frame()
402 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame()
405 if (info->control.hw_key) { in wl1271_prepare_tx_frame()
407 u8 idx = info->control.hw_key->hw_key_idx; in wl1271_prepare_tx_frame()
408 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame()
965 info->control.hw_key && in wl1271_tx_complete_packet()
966 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet()
1127 info->control.hw_key && in wl12xx_tx_reset()
1128 info->control.hw_key->cipher == in wl12xx_tx_reset()
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dxmit.c195 int use_encryption = !!info->control.hw_key; in generate_txhdr_fw3()
238 u8 key_idx = info->control.hw_key->hw_key_idx; in generate_txhdr_fw3()
248 plcp_fragment_len += info->control.hw_key->icv_len; in generate_txhdr_fw3()
257 iv_len = min_t(size_t, info->control.hw_key->iv_len, in generate_txhdr_fw3()
/linux-4.4.14/drivers/net/wireless/b43/
Dxmit.c253 int use_encryption = !!info->control.hw_key; in b43_generate_txhdr()
300 u8 key_idx = info->control.hw_key->hw_key_idx; in b43_generate_txhdr()
318 plcp_fragment_len += info->control.hw_key->icv_len; in b43_generate_txhdr()
332 ieee80211_get_tkip_p1k(info->control.hw_key, skb_frag, phase1key); in b43_generate_txhdr()
341 iv_len = min_t(size_t, info->control.hw_key->iv_len, in b43_generate_txhdr()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dcommon.c278 if (tx_info->control.hw_key) { in ath9k_cmn_get_hw_crypto_keytype()
279 switch (tx_info->control.hw_key->cipher) { in ath9k_cmn_get_hw_crypto_keytype()
Dxmit.c2075 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in setup_frame_info() local
2111 if (hw_key) in setup_frame_info()
2112 fi->keyix = hw_key->hw_key_idx; in setup_frame_info()
2241 if (info->control.hw_key) in ath_tx_prepare()
2242 frmlen += info->control.hw_key->icv_len; in ath_tx_prepare()
Dhtc_drv_txrx.c253 mgmt_hdr.keyix = tx_info->control.hw_key->hw_key_idx; in ath9k_htc_tx_mgmt()
320 tx_hdr.keyix = tx_info->control.hw_key->hw_key_idx; in ath9k_htc_tx_data()
/linux-4.4.14/drivers/staging/vt6655/
Drxtx.c1064 if (info->control.hw_key) { in s_cbFillTxBufHead()
1065 switch (info->control.hw_key->cipher) { in s_cbFillTxBufHead()
1072 cbFrameSize += info->control.hw_key->icv_len; in s_cbFillTxBufHead()
1366 if (info->control.hw_key) { in vnt_generate_fifo_header()
1367 tx_key = info->control.hw_key; in vnt_generate_fifo_header()
1369 switch (info->control.hw_key->cipher) { in vnt_generate_fifo_header()
1402 if (info->control.hw_key) { in vnt_generate_fifo_header()
1403 tx_key = info->control.hw_key; in vnt_generate_fifo_header()
/linux-4.4.14/drivers/net/wireless/cw1200/
Dtxrx.c506 if (!t->tx_info->control.hw_key || in cw1200_tx_h_crypt()
510 t->hdrlen += t->tx_info->control.hw_key->iv_len; in cw1200_tx_h_crypt()
511 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); in cw1200_tx_h_crypt()
513 if (t->tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_h_crypt()
954 if (tx->control.hw_key) { in cw1200_tx_confirm_cb()
955 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); in cw1200_tx_confirm_cb()
956 if (tx->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_confirm_cb()
Dwsm.c1537 tx_info->control.hw_key && in wsm_handle_tx_data()
1538 tx_info->control.hw_key->keyidx != priv->wep_default_key_id && in wsm_handle_tx_data()
1539 (tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP40 || in wsm_handle_tx_data()
1540 tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP104)) { in wsm_handle_tx_data()
1567 priv->wep_default_key_id = tx_info->control.hw_key->keyidx; in wsm_handle_tx_data()
/linux-4.4.14/drivers/staging/vt6656/
Drxtx.c897 if (info->control.hw_key) { in vnt_tx_packet()
898 tx_key = info->control.hw_key; in vnt_tx_packet()
899 switch (info->control.hw_key->cipher) { in vnt_tx_packet()
962 if (info->control.hw_key) { in vnt_tx_packet()
963 tx_key = info->control.hw_key; in vnt_tx_packet()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dtdls.c464 if (info->control.hw_key) { in iwl_mvm_tdls_config_channel_switch()
465 if (info->control.hw_key->cipher != WLAN_CIPHER_SUITE_CCMP) { in iwl_mvm_tdls_config_channel_switch()
Dtx.c279 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_crypto()
339 if (info->control.hw_key) in iwl_mvm_set_tx_params()
Dmvm.h1045 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_ccmp()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dtrx.c463 if (info->control.hw_key) { in rtl92se_tx_fill_desc()
466 keyconf = info->control.hw_key; in rtl92se_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dtrx.c470 if (info->control.hw_key) { in rtl8723e_tx_fill_desc()
472 info->control.hw_key; in rtl8723e_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dtrx.c529 if (info->control.hw_key) { in rtl92ce_tx_fill_desc()
531 info->control.hw_key; in rtl92ce_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.c542 if (info->control.hw_key) { in rtl8723be_tx_fill_desc()
544 info->control.hw_key; in rtl8723be_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dtrx.c618 if (info->control.hw_key) { in rtl88ee_tx_fill_desc()
621 keyconf = info->control.hw_key; in rtl88ee_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dtrx.c571 if (info->control.hw_key) { in rtl92cu_tx_fill_desc()
572 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92cu_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c665 if (info->control.hw_key) { in rtl92de_tx_fill_desc()
668 keyconf = info->control.hw_key; in rtl92de_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/ath/carl9170/
Dtx.c1019 if (info->control.hw_key) { in carl9170_tx_prepare()
1020 len += info->control.hw_key->icv_len; in carl9170_tx_prepare()
1022 switch (info->control.hw_key->cipher) { in carl9170_tx_prepare()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.c785 if (info->control.hw_key) { in rtl8821ae_tx_fill_desc()
787 info->control.hw_key; in rtl8821ae_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dtrx.c794 if (info->control.hw_key) { in rtl92ee_tx_fill_desc()
795 struct ieee80211_key_conf *key = info->control.hw_key; in rtl92ee_tx_fill_desc()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dtx.c213 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwlagn_tx_cmd_build_hwcrypto()
377 if (info->control.hw_key) in iwlagn_tx_skb()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dbase.c779 if (info->control.hw_key) { in ath5k_txbuf_setup()
780 keyidx = info->control.hw_key->hw_key_idx; in ath5k_txbuf_setup()
781 pktlen += info->control.hw_key->icv_len; in ath5k_txbuf_setup()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D3945-mac.c389 TX_CMD_SEC_WEP | (info->control.hw_key-> in il3945_build_tx_cmd_hwcrypto()
396 info->control.hw_key->hw_key_idx); in il3945_build_tx_cmd_hwcrypto()
567 if (info->control.hw_key) in il3945_tx_skb()
D4965-mac.c1617 struct ieee80211_key_conf *keyconf = info->control.hw_key; in il4965_tx_cmd_build_hwcrypto()
1808 if (info->control.hw_key) in il4965_tx_skb()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dpci.c480 if (info->control.hw_key) in _rtl_update_earlymode_info()
481 additionlen += info->control.hw_key->icv_len; in _rtl_update_earlymode_info()
/linux-4.4.14/include/net/
Dmac80211.h874 struct ieee80211_key_conf *hw_key; member
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu.c4803 if (tx_info->control.hw_key) { in rtl8xxxu_tx()
4804 switch (tx_info->control.hw_key->cipher) { in rtl8xxxu_tx()
/linux-4.4.14/drivers/net/wireless/
Dmwl8k.c899 key_conf = tx_info->control.hw_key; in mwl8k_encapsulate_tx_frame()