Lines Matching refs:tx
30 ieee80211_tx_h_michael_mic_add(struct ieee80211_tx_data *tx) in ieee80211_tx_h_michael_mic_add() argument
36 struct sk_buff *skb = tx->skb; in ieee80211_tx_h_michael_mic_add()
41 if (!tx->key || tx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_tx_h_michael_mic_add()
59 ieee80211_hw_check(&tx->local->hw, SUPPORTS_TX_FRAG)) && in ieee80211_tx_h_michael_mic_add()
60 !(tx->key->conf.flags & (IEEE80211_KEY_FLAG_GENERATE_MMIC | in ieee80211_tx_h_michael_mic_add()
79 if (tx->key->conf.flags & IEEE80211_KEY_FLAG_PUT_MIC_SPACE) { in ieee80211_tx_h_michael_mic_add()
85 key = &tx->key->conf.key[NL80211_TKIP_DATA_OFFSET_TX_MIC_KEY]; in ieee80211_tx_h_michael_mic_add()
194 static int tkip_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) in tkip_encrypt_skb() argument
197 struct ieee80211_key *key = tx->key; in tkip_encrypt_skb()
243 return ieee80211_tkip_encrypt_data(&tx->local->wep_tx_ctx, in tkip_encrypt_skb()
249 ieee80211_crypto_tkip_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_tkip_encrypt() argument
253 ieee80211_tx_set_protected(tx); in ieee80211_crypto_tkip_encrypt()
255 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_tkip_encrypt()
256 if (tkip_encrypt_skb(tx, skb) < 0) in ieee80211_crypto_tkip_encrypt()
406 static int ccmp_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb, in ccmp_encrypt_skb() argument
410 struct ieee80211_key *key = tx->key; in ccmp_encrypt_skb()
478 ieee80211_crypto_ccmp_encrypt(struct ieee80211_tx_data *tx, in ieee80211_crypto_ccmp_encrypt() argument
483 ieee80211_tx_set_protected(tx); in ieee80211_crypto_ccmp_encrypt()
485 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_ccmp_encrypt()
486 if (ccmp_encrypt_skb(tx, skb, mic_len) < 0) in ieee80211_crypto_ccmp_encrypt()
643 static int gcmp_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) in gcmp_encrypt_skb() argument
646 struct ieee80211_key *key = tx->key; in gcmp_encrypt_skb()
714 ieee80211_crypto_gcmp_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_gcmp_encrypt() argument
718 ieee80211_tx_set_protected(tx); in ieee80211_crypto_gcmp_encrypt()
720 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_gcmp_encrypt()
721 if (gcmp_encrypt_skb(tx, skb) < 0) in ieee80211_crypto_gcmp_encrypt()
807 ieee80211_crypto_cs_encrypt(struct ieee80211_tx_data *tx, in ieee80211_crypto_cs_encrypt() argument
811 struct ieee80211_key *key = tx->key; in ieee80211_crypto_cs_encrypt()
944 ieee80211_crypto_aes_cmac_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_aes_cmac_encrypt() argument
948 struct ieee80211_key *key = tx->key; in ieee80211_crypto_aes_cmac_encrypt()
953 if (WARN_ON(skb_queue_len(&tx->skbs) != 1)) in ieee80211_crypto_aes_cmac_encrypt()
956 skb = skb_peek(&tx->skbs); in ieee80211_crypto_aes_cmac_encrypt()
992 ieee80211_crypto_aes_cmac_256_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_aes_cmac_256_encrypt() argument
996 struct ieee80211_key *key = tx->key; in ieee80211_crypto_aes_cmac_256_encrypt()
1001 if (WARN_ON(skb_queue_len(&tx->skbs) != 1)) in ieee80211_crypto_aes_cmac_256_encrypt()
1004 skb = skb_peek(&tx->skbs); in ieee80211_crypto_aes_cmac_256_encrypt()
1135 ieee80211_crypto_aes_gmac_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_aes_gmac_encrypt() argument
1139 struct ieee80211_key *key = tx->key; in ieee80211_crypto_aes_gmac_encrypt()
1146 if (WARN_ON(skb_queue_len(&tx->skbs) != 1)) in ieee80211_crypto_aes_gmac_encrypt()
1149 skb = skb_peek(&tx->skbs); in ieee80211_crypto_aes_gmac_encrypt()
1244 ieee80211_crypto_hw_encrypt(struct ieee80211_tx_data *tx) in ieee80211_crypto_hw_encrypt() argument
1250 skb_queue_walk(&tx->skbs, skb) { in ieee80211_crypto_hw_encrypt()
1257 if (tx->key->flags & KEY_FLAG_CIPHER_SCHEME) { in ieee80211_crypto_hw_encrypt()
1258 res = ieee80211_crypto_cs_encrypt(tx, skb); in ieee80211_crypto_hw_encrypt()
1264 ieee80211_tx_set_protected(tx); in ieee80211_crypto_hw_encrypt()