Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00crypto.c40 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in rt2x00crypto_create_tx_descriptor() local
42 if (!rt2x00_has_cap_hw_crypto(rt2x00dev) || !hw_key) in rt2x00crypto_create_tx_descriptor()
47 txdesc->cipher = rt2x00crypto_key_to_cipher(hw_key); in rt2x00crypto_create_tx_descriptor()
49 if (hw_key->flags & IEEE80211_KEY_FLAG_PAIRWISE) in rt2x00crypto_create_tx_descriptor()
52 txdesc->key_idx = hw_key->hw_key_idx; in rt2x00crypto_create_tx_descriptor()
54 txdesc->iv_len = hw_key->iv_len; in rt2x00crypto_create_tx_descriptor()
56 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV)) in rt2x00crypto_create_tx_descriptor()
59 if (!(hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_MMIC)) in rt2x00crypto_create_tx_descriptor()
67 struct ieee80211_key_conf *key = tx_info->control.hw_key; in rt2x00crypto_tx_overhead()
/linux/net/mac80211/
H A Dwep.c84 if (info->control.hw_key && in ieee80211_wep_add_iv()
85 (info->control.hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) in ieee80211_wep_add_iv()
274 struct ieee80211_key_conf *hw_key = info->control.hw_key; in wep_encrypt_skb() local
276 if (!hw_key) { in wep_encrypt_skb()
281 } else if ((hw_key->flags & IEEE80211_KEY_FLAG_GENERATE_IV) || in wep_encrypt_skb()
282 (hw_key->flags & IEEE80211_KEY_FLAG_PUT_IV_SPACE)) { in wep_encrypt_skb()
/linux/drivers/net/wireless/silabs/wfx/
H A Ddata_tx.c322 static int wfx_tx_get_icv_len(struct ieee80211_key_conf *hw_key) in wfx_tx_get_icv_len() argument
326 if (!hw_key) in wfx_tx_get_icv_len()
328 if (hw_key->cipher == WLAN_CIPHER_SUITE_AES_CMAC) in wfx_tx_get_icv_len()
330 mic_space = (hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) ? 8 : 0; in wfx_tx_get_icv_len()
331 return hw_key->icv_len + mic_space; in wfx_tx_get_icv_len()
340 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in wfx_tx_inner() local
353 tx_priv->icv_size = wfx_tx_get_icv_len(hw_key); in wfx_tx_inner()
/linux/drivers/net/wireless/ti/wl1251/
H A Dtx.c179 if (control->control.hw_key && in wl1251_tx_send_packet()
180 control->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_send_packet()
297 if (info->control.hw_key) { in wl1251_tx_frame()
301 idx = info->control.hw_key->hw_key_idx; in wl1251_tx_frame()
428 if (info->control.hw_key && in wl1251_tx_packet_cb()
429 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1251_tx_packet_cb()
/linux/drivers/net/wireless/ti/wlcore/
H A Dtx.c387 info->control.hw_key && in wl1271_prepare_tx_frame()
388 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in wl1271_prepare_tx_frame()
391 if (info->control.hw_key) { in wl1271_prepare_tx_frame()
393 u8 idx = info->control.hw_key->hw_key_idx; in wl1271_prepare_tx_frame()
394 u32 cipher = info->control.hw_key->cipher; in wl1271_prepare_tx_frame()
952 info->control.hw_key && in wl1271_tx_complete_packet()
953 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl1271_tx_complete_packet()
1114 info->control.hw_key && in wl12xx_tx_reset()
1115 info->control.hw_key->cipher == in wl12xx_tx_reset()
/linux/drivers/net/wireless/ti/wl18xx/
H A Dtx.c116 info->control.hw_key && in wl18xx_tx_complete_packet()
117 info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) { in wl18xx_tx_complete_packet()
/linux/drivers/crypto/ccree/
H A Dcc_hw_queue_defs.h546 enum cc_hw_crypto_key hw_key) in set_hw_crypto_key() argument
549 (hw_key & HW_KEY_MASK_CIPHER_DO)) | in set_hw_crypto_key()
551 (hw_key >> HW_KEY_SHIFT_CIPHER_CFG2)); in set_hw_crypto_key()
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dxmit.c182 int use_encryption = !!info->control.hw_key; in generate_txhdr_fw3()
225 u8 key_idx = info->control.hw_key->hw_key_idx; in generate_txhdr_fw3()
235 plcp_fragment_len += info->control.hw_key->icv_len; in generate_txhdr_fw3()
244 iv_len = min_t(size_t, info->control.hw_key->iv_len, in generate_txhdr_fw3()
/linux/drivers/net/wireless/broadcom/b43/
H A Dxmit.c247 int use_encryption = !!info->control.hw_key; in b43_generate_txhdr()
294 u8 key_idx = info->control.hw_key->hw_key_idx; in b43_generate_txhdr()
312 plcp_fragment_len += info->control.hw_key->icv_len; in b43_generate_txhdr()
326 ieee80211_get_tkip_p1k(info->control.hw_key, skb_frag, phase1key); in b43_generate_txhdr()
335 iv_len = min_t(size_t, info->control.hw_key->iv_len, in b43_generate_txhdr()
/linux/drivers/net/wireless/st/cw1200/
H A Dtxrx.c503 if (!t->tx_info->control.hw_key || in cw1200_tx_h_crypt()
507 t->hdrlen += t->tx_info->control.hw_key->iv_len; in cw1200_tx_h_crypt()
508 skb_put(t->skb, t->tx_info->control.hw_key->icv_len); in cw1200_tx_h_crypt()
510 if (t->tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_h_crypt()
948 if (tx->control.hw_key) { in cw1200_tx_confirm_cb()
949 skb_trim(skb, skb->len - tx->control.hw_key->icv_len); in cw1200_tx_confirm_cb()
950 if (tx->control.hw_key->cipher == WLAN_CIPHER_SUITE_TKIP) in cw1200_tx_confirm_cb()
H A Dwsm.c1530 tx_info->control.hw_key && in wsm_handle_tx_data()
1531 tx_info->control.hw_key->keyidx != priv->wep_default_key_id && in wsm_handle_tx_data()
1532 (tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP40 || in wsm_handle_tx_data()
1533 tx_info->control.hw_key->cipher == WLAN_CIPHER_SUITE_WEP104)) { in wsm_handle_tx_data()
1560 priv->wep_default_key_id = tx_info->control.hw_key->keyidx; in wsm_handle_tx_data()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dtrx.c165 if (info->control.hw_key) { in rtl92de_tx_fill_desc()
168 keyconf = info->control.hw_key; in rtl92de_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
H A Dtrx.c158 if (info->control.hw_key) { in rtl92du_tx_fill_desc()
159 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92du_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dtrx.c448 if (info->control.hw_key) { in rtl92ce_tx_fill_desc()
450 info->control.hw_key; in rtl92ce_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dtrx.c448 if (info->control.hw_key) { in rtl8723e_tx_fill_desc()
450 info->control.hw_key; in rtl8723e_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dtrx.c438 if (info->control.hw_key) { in rtl92se_tx_fill_desc()
441 keyconf = info->control.hw_key; in rtl92se_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dtrx.c522 if (info->control.hw_key) { in rtl8723be_tx_fill_desc()
524 info->control.hw_key; in rtl8723be_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dtrx.c560 if (info->control.hw_key) { in rtl92cu_tx_fill_desc()
561 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92cu_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dtrx.c597 if (info->control.hw_key) { in rtl88ee_tx_fill_desc()
600 keyconf = info->control.hw_key; in rtl88ee_tx_fill_desc()
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_core.c403 tx_params->have_key = !!info->control.hw_key; in rsi_core_xmit()
/linux/drivers/net/wireless/ath/carl9170/
H A Dtx.c1023 if (info->control.hw_key) { in carl9170_tx_prepare()
1024 len += info->control.hw_key->icv_len; in carl9170_tx_prepare()
1026 switch (info->control.hw_key->cipher) { in carl9170_tx_prepare()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dtrx.c768 if (info->control.hw_key) { in rtl92ee_tx_fill_desc()
769 struct ieee80211_key_conf *key = info->control.hw_key; in rtl92ee_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dtrx.c768 if (info->control.hw_key) { in rtl8821ae_tx_fill_desc()
770 info->control.hw_key; in rtl8821ae_tx_fill_desc()
/linux/drivers/net/wireless/ath/ath9k/
H A Dxmit.c2137 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; in setup_frame_info() local
2176 if (hw_key) in setup_frame_info()
2177 fi->keyix = hw_key->hw_key_idx; in setup_frame_info()
2298 if (info->control.hw_key) in ath_tx_prepare()
2299 frmlen += info->control.hw_key->icv_len; in ath_tx_prepare()
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dtx.c192 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwlagn_tx_cmd_build_hwcrypto()
356 if (info->control.hw_key) in iwlagn_tx_skb()

12