Searched refs:hw_key (Results 1 - 37 of 37) sorted by relevance

/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00crypto.c51 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; rt2x00crypto_create_tx_descriptor() local
53 if (!rt2x00_has_cap_hw_crypto(rt2x00dev) || !hw_key) rt2x00crypto_create_tx_descriptor()
58 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); rt2x00crypto_create_tx_descriptor()
60 if (hw_key->flags & IEEE80211_KEY_FLAG_PAIRWISE) rt2x00crypto_create_tx_descriptor()
63 txdesc->key_idx = hw_key->hw_key_idx; rt2x00crypto_create_tx_descriptor()
65 txdesc->iv_len = hw_key->iv_len; rt2x00crypto_create_tx_descriptor()
67 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) rt2x00crypto_create_tx_descriptor()
70 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) rt2x00crypto_create_tx_descriptor()
78 struct ieee80211_key_conf *key = tx_info->control.hw_key; rt2x00crypto_tx_overhead()
H A Drt2x00mac.c74 rts_info->control.hw_key = NULL; rt2x00mac_tx_rts_cts()
/linux-4.1.27/net/mac80211/
H A Dwpa.c54 info->control.hw_key = NULL; ieee80211_tx_h_michael_mic_add()
57 if (info->control.hw_key && ieee80211_tx_h_michael_mic_add()
66 if (!info->control.hw_key) ieee80211_tx_h_michael_mic_add()
193 if (info->control.hw_key && tkip_encrypt_skb()
194 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) && tkip_encrypt_skb()
195 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { tkip_encrypt_skb()
203 if (info->control.hw_key) tkip_encrypt_skb()
217 if (info->control.hw_key && tkip_encrypt_skb()
218 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) tkip_encrypt_skb()
230 if (info->control.hw_key) tkip_encrypt_skb()
411 if (info->control.hw_key && ccmp_encrypt_skb()
412 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) && ccmp_encrypt_skb()
413 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE) && ccmp_encrypt_skb()
414 !((info->control.hw_key->flags & ccmp_encrypt_skb()
427 if (info->control.hw_key) ccmp_encrypt_skb()
440 if (info->control.hw_key && ccmp_encrypt_skb()
441 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) ccmp_encrypt_skb()
459 if (info->control.hw_key) ccmp_encrypt_skb()
636 if (info->control.hw_key && gcmp_encrypt_skb()
637 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) && gcmp_encrypt_skb()
638 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE) && gcmp_encrypt_skb()
639 !((info->control.hw_key->flags & gcmp_encrypt_skb()
651 if (info->control.hw_key) gcmp_encrypt_skb()
666 if (info->control.hw_key && gcmp_encrypt_skb()
667 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) gcmp_encrypt_skb()
685 if (info->control.hw_key) gcmp_encrypt_skb()
786 if (info->control.hw_key && ieee80211_crypto_cs_encrypt()
787 !(info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { ieee80211_crypto_cs_encrypt()
931 if (info->control.hw_key) ieee80211_crypto_aes_cmac_encrypt()
975 if (info->control.hw_key) ieee80211_crypto_aes_cmac_256_encrypt()
1120 if (info->control.hw_key) ieee80211_crypto_aes_gmac_encrypt()
1216 if (!info->control.hw_key) ieee80211_crypto_hw_encrypt()
H A Dwep.c109 if (info->control.hw_key && ieee80211_wep_add_iv()
110 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) ieee80211_wep_add_iv()
306 struct ieee80211_key_conf *hw_key = info->control.hw_key; wep_encrypt_skb() local
308 if (!hw_key) { wep_encrypt_skb()
313 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || wep_encrypt_skb()
314 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { wep_encrypt_skb()
H A Dtx.c638 info->control.hw_key = &tx->key->conf; ieee80211_tx_h_select_key()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dtx.c194 if (control->control.hw_key && wl1251_tx_send_packet()
195 control->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { wl1251_tx_send_packet()
314 if (info->control.hw_key) { wl1251_tx_frame()
318 idx = info->control.hw_key->hw_key_idx; wl1251_tx_frame()
441 if (info->control.hw_key && wl1251_tx_packet_cb()
442 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { wl1251_tx_packet_cb()
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
H A Dtx.c126 info->control.hw_key && wl18xx_tx_complete_packet()
127 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { wl18xx_tx_complete_packet()
/linux-4.1.27/drivers/net/wireless/p54/
H A Dtxrx.c804 if (info->control.hw_key) { p54_tx_80211()
806 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { p54_tx_80211()
901 if (info->control.hw_key) { p54_tx_80211()
902 txhdr->key_type = p54_convert_algo(info->control.hw_key->cipher); p54_tx_80211()
903 txhdr->key_len = min((u8)16, info->control.hw_key->keylen); p54_tx_80211()
904 memcpy(txhdr->key, info->control.hw_key->key, txhdr->key_len); p54_tx_80211()
905 if (info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { p54_tx_80211()
908 memcpy(skb_put(skb, 8), &(info->control.hw_key->key p54_tx_80211()
912 len += info->control.hw_key->icv_len; p54_tx_80211()
913 memset(skb_put(skb, info->control.hw_key->icv_len), 0, p54_tx_80211()
914 info->control.hw_key->icv_len); p54_tx_80211()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dtx.c401 info->control.hw_key && wl1271_prepare_tx_frame()
402 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) wl1271_prepare_tx_frame()
405 if (info->control.hw_key) { wl1271_prepare_tx_frame()
407 u8 idx = info->control.hw_key->hw_key_idx; wl1271_prepare_tx_frame()
408 u32 cipher = info->control.hw_key->cipher; wl1271_prepare_tx_frame()
965 info->control.hw_key && wl1271_tx_complete_packet()
966 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { wl1271_tx_complete_packet()
1127 info->control.hw_key && wl12xx_tx_reset()
1128 info->control.hw_key->cipher == wl12xx_tx_reset()
/linux-4.1.27/drivers/net/wireless/b43legacy/
H A Dxmit.c195 int use_encryption = !!info->control.hw_key; generate_txhdr_fw3()
238 u8 key_idx = info->control.hw_key->hw_key_idx; generate_txhdr_fw3()
248 plcp_fragment_len += info->control.hw_key->icv_len; generate_txhdr_fw3()
257 iv_len = min_t(size_t, info->control.hw_key->iv_len, generate_txhdr_fw3()
/linux-4.1.27/drivers/net/wireless/b43/
H A Dxmit.c253 int use_encryption = !!info->control.hw_key; b43_generate_txhdr()
300 u8 key_idx = info->control.hw_key->hw_key_idx; b43_generate_txhdr()
318 plcp_fragment_len += info->control.hw_key->icv_len; b43_generate_txhdr()
332 ieee80211_get_tkip_p1k(info->control.hw_key, skb_frag, phase1key); b43_generate_txhdr()
341 iv_len = min_t(size_t, info->control.hw_key->iv_len, b43_generate_txhdr()
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Dtxrx.c506 if (!t->tx_info->control.hw_key || cw1200_tx_h_crypt()
510 t->hdrlen += t->tx_info->control.hw_key->iv_len; cw1200_tx_h_crypt()
511 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); cw1200_tx_h_crypt()
513 if (t->tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) cw1200_tx_h_crypt()
954 if (tx->control.hw_key) { cw1200_tx_confirm_cb()
955 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); cw1200_tx_confirm_cb()
956 if (tx->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) cw1200_tx_confirm_cb()
H A Dwsm.c1537 tx_info->control.hw_key && wsm_handle_tx_data()
1538 tx_info->control.hw_key->keyidx != priv->wep_default_key_id && wsm_handle_tx_data()
1539 (tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP40 || wsm_handle_tx_data()
1540 tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP104)) { wsm_handle_tx_data()
1567 priv->wep_default_key_id = tx_info->control.hw_key->keyidx; wsm_handle_tx_data()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
H A Dcommon.c278 if (tx_info->control.hw_key) { ath9k_cmn_get_hw_crypto_keytype()
279 switch (tx_info->control.hw_key->cipher) { ath9k_cmn_get_hw_crypto_keytype()
H A Dxmit.c2112 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; setup_frame_info() local
2148 if (hw_key) setup_frame_info()
2149 fi->keyix = hw_key->hw_key_idx; setup_frame_info()
2278 if (info->control.hw_key) ath_tx_prepare()
2279 frmlen += info->control.hw_key->icv_len; ath_tx_prepare()
2335 * At this point, the vif, hw_key and sta pointers in the tx control ath_tx_start()
H A Dhtc_drv_txrx.c253 mgmt_hdr.keyix = tx_info->control.hw_key->hw_key_idx; ath9k_htc_tx_mgmt()
320 tx_hdr.keyix = tx_info->control.hw_key->hw_key_idx; ath9k_htc_tx_data()
/linux-4.1.27/drivers/staging/vt6655/
H A Drxtx.c1065 if (info->control.hw_key) { s_cbFillTxBufHead()
1066 switch (info->control.hw_key->cipher) { s_cbFillTxBufHead()
1073 cbFrameSize += info->control.hw_key->icv_len; s_cbFillTxBufHead()
1369 if (info->control.hw_key) { vnt_generate_fifo_header()
1370 tx_key = info->control.hw_key; vnt_generate_fifo_header()
1372 switch (info->control.hw_key->cipher) { vnt_generate_fifo_header()
1405 if (info->control.hw_key) { vnt_generate_fifo_header()
1406 tx_key = info->control.hw_key; vnt_generate_fifo_header()
/linux-4.1.27/drivers/staging/vt6656/
H A Drxtx.c891 if (info->control.hw_key) { vnt_tx_packet()
892 tx_key = info->control.hw_key; vnt_tx_packet()
893 switch (info->control.hw_key->cipher) { vnt_tx_packet()
956 if (info->control.hw_key) { vnt_tx_packet()
957 tx_key = info->control.hw_key; vnt_tx_packet()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/
H A Dtrx.c463 if (info->control.hw_key) { rtl92se_tx_fill_desc()
466 keyconf = info->control.hw_key; rtl92se_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/
H A Dtrx.c470 if (info->control.hw_key) { rtl8723e_tx_fill_desc()
472 info->control.hw_key; rtl8723e_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
H A Dtrx.c618 if (info->control.hw_key) { rtl88ee_tx_fill_desc()
621 keyconf = info->control.hw_key; rtl88ee_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ce/
H A Dtrx.c529 if (info->control.hw_key) { rtl92ce_tx_fill_desc()
531 info->control.hw_key; rtl92ce_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/
H A Dtrx.c571 if (info->control.hw_key) { rtl92cu_tx_fill_desc()
572 struct ieee80211_key_conf *keyconf = info->control.hw_key; rtl92cu_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
H A Dtrx.c665 if (info->control.hw_key) { rtl92de_tx_fill_desc()
668 keyconf = info->control.hw_key; rtl92de_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
H A Dtrx.c794 if (info->control.hw_key) { rtl92ee_tx_fill_desc()
795 struct ieee80211_key_conf *key = info->control.hw_key; rtl92ee_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/
H A Dtrx.c542 if (info->control.hw_key) { rtl8723be_tx_fill_desc()
544 info->control.hw_key; rtl8723be_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/
H A Dtrx.c785 if (info->control.hw_key) { rtl8821ae_tx_fill_desc()
787 info->control.hw_key; rtl8821ae_tx_fill_desc()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Dtx.c1019 if (info->control.hw_key) { carl9170_tx_prepare()
1020 len += info->control.hw_key->icv_len; carl9170_tx_prepare()
1022 switch (info->control.hw_key->cipher) { carl9170_tx_prepare()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Dtx.c213 struct ieee80211_key_conf *keyconf = info->control.hw_key; iwlagn_tx_cmd_build_hwcrypto()
377 if (info->control.hw_key) iwlagn_tx_skb()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dtx.c249 struct ieee80211_key_conf *keyconf = info->control.hw_key; iwl_mvm_set_tx_cmd_crypto()
300 if (info->control.hw_key) iwl_mvm_set_tx_params()
H A Dtdls.c474 if (info->control.hw_key) iwl_mvm_tdls_config_channel_switch()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Dbase.c779 if (info->control.hw_key) { ath5k_txbuf_setup()
780 keyidx = info->control.hw_key->hw_key_idx; ath5k_txbuf_setup()
781 pktlen += info->control.hw_key->icv_len; ath5k_txbuf_setup()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
H A Dpci.c480 if (info->control.hw_key) _rtl_update_earlymode_info()
481 additionlen += info->control.hw_key->icv_len; _rtl_update_earlymode_info()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A D3945-mac.c389 TX_CMD_SEC_WEP | (info->control.hw_key-> il3945_build_tx_cmd_hwcrypto()
396 info->control.hw_key->hw_key_idx); il3945_build_tx_cmd_hwcrypto()
567 if (info->control.hw_key) il3945_tx_skb()
H A D4965-mac.c1617 struct ieee80211_key_conf *keyconf = info->control.hw_key; il4965_tx_cmd_build_hwcrypto()
1808 if (info->control.hw_key) il4965_tx_skb()
/linux-4.1.27/drivers/net/wireless/
H A Dmwl8k.c899 key_conf = tx_info->control.hw_key; mwl8k_encapsulate_tx_frame()
/linux-4.1.27/include/net/
H A Dmac80211.h853 struct ieee80211_key_conf *hw_key; member in struct:ieee80211_tx_info::__anon12722::__anon12723

Completed in 1070 milliseconds