Lines Matching refs:rx
95 ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx) in ieee80211_rx_h_michael_mic_verify() argument
101 struct sk_buff *skb = rx->skb; in ieee80211_rx_h_michael_mic_verify()
122 if (!(status->flag & RX_FLAG_IV_STRIPPED) && rx->key && in ieee80211_rx_h_michael_mic_verify()
123 rx->key->conf.cipher == WLAN_CIPHER_SUITE_TKIP) in ieee80211_rx_h_michael_mic_verify()
134 if (!rx->key || rx->key->conf.cipher != WLAN_CIPHER_SUITE_TKIP || in ieee80211_rx_h_michael_mic_verify()
138 if (rx->sdata->vif.type == NL80211_IFTYPE_AP && rx->key->conf.keyidx) { in ieee80211_rx_h_michael_mic_verify()
155 if (skb_linearize(rx->skb)) in ieee80211_rx_h_michael_mic_verify()
161 key = &rx->key->conf.key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY]; in ieee80211_rx_h_michael_mic_verify()
171 rx->key->u.tkip.rx[rx->security_idx].iv32 = rx->tkip.iv32; in ieee80211_rx_h_michael_mic_verify()
172 rx->key->u.tkip.rx[rx->security_idx].iv16 = rx->tkip.iv16; in ieee80211_rx_h_michael_mic_verify()
177 rx->key->u.tkip.mic_failures++; in ieee80211_rx_h_michael_mic_verify()
185 cfg80211_michael_mic_failure(rx->sdata->dev, hdr->addr2, in ieee80211_rx_h_michael_mic_verify()
189 rx->key ? rx->key->conf.keyidx : -1, in ieee80211_rx_h_michael_mic_verify()
265 ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx) in ieee80211_crypto_tkip_decrypt() argument
267 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data; in ieee80211_crypto_tkip_decrypt()
269 struct ieee80211_key *key = rx->key; in ieee80211_crypto_tkip_decrypt()
270 struct sk_buff *skb = rx->skb; in ieee80211_crypto_tkip_decrypt()
278 if (!rx->sta || skb->len - hdrlen < 12) in ieee80211_crypto_tkip_decrypt()
282 if (skb_linearize(rx->skb)) in ieee80211_crypto_tkip_decrypt()
294 res = ieee80211_tkip_decrypt_data(&rx->local->wep_rx_ctx, in ieee80211_crypto_tkip_decrypt()
296 skb->len - hdrlen, rx->sta->sta.addr, in ieee80211_crypto_tkip_decrypt()
297 hdr->addr1, hwaccel, rx->security_idx, in ieee80211_crypto_tkip_decrypt()
298 &rx->tkip.iv32, in ieee80211_crypto_tkip_decrypt()
299 &rx->tkip.iv16); in ieee80211_crypto_tkip_decrypt()
506 ieee80211_crypto_ccmp_decrypt(struct ieee80211_rx_data *rx, in ieee80211_crypto_ccmp_decrypt() argument
509 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_crypto_ccmp_decrypt()
511 struct ieee80211_key *key = rx->key; in ieee80211_crypto_ccmp_decrypt()
512 struct sk_buff *skb = rx->skb; in ieee80211_crypto_ccmp_decrypt()
525 if (!pskb_may_pull(rx->skb, hdrlen + IEEE80211_CCMP_HDR_LEN)) in ieee80211_crypto_ccmp_decrypt()
530 if (skb_linearize(rx->skb)) in ieee80211_crypto_ccmp_decrypt()
535 hdr = (void *)rx->skb->data; in ieee80211_crypto_ccmp_decrypt()
538 if (!rx->sta || data_len < 0) in ieee80211_crypto_ccmp_decrypt()
546 queue = rx->security_idx; in ieee80211_crypto_ccmp_decrypt()
572 memcpy(rx->ccm_gcm.pn, pn, IEEE80211_CCMP_PN_LEN); in ieee80211_crypto_ccmp_decrypt()
704 ieee80211_crypto_gcmp_decrypt(struct ieee80211_rx_data *rx) in ieee80211_crypto_gcmp_decrypt() argument
706 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; in ieee80211_crypto_gcmp_decrypt()
708 struct ieee80211_key *key = rx->key; in ieee80211_crypto_gcmp_decrypt()
709 struct sk_buff *skb = rx->skb; in ieee80211_crypto_gcmp_decrypt()
721 if (!pskb_may_pull(rx->skb, hdrlen + IEEE80211_GCMP_HDR_LEN)) in ieee80211_crypto_gcmp_decrypt()
726 if (skb_linearize(rx->skb)) in ieee80211_crypto_gcmp_decrypt()
731 hdr = (void *)rx->skb->data; in ieee80211_crypto_gcmp_decrypt()
734 if (!rx->sta || data_len < 0) in ieee80211_crypto_gcmp_decrypt()
742 queue = rx->security_idx; in ieee80211_crypto_gcmp_decrypt()
769 memcpy(rx->ccm_gcm.pn, pn, IEEE80211_CCMP_PN_LEN); in ieee80211_crypto_gcmp_decrypt()
912 ieee80211_crypto_aes_cmac_decrypt(struct ieee80211_rx_data *rx) in ieee80211_crypto_aes_cmac_decrypt() argument
914 struct sk_buff *skb = rx->skb; in ieee80211_crypto_aes_cmac_decrypt()
916 struct ieee80211_key *key = rx->key; in ieee80211_crypto_aes_cmac_decrypt()
962 ieee80211_crypto_aes_cmac_256_decrypt(struct ieee80211_rx_data *rx) in ieee80211_crypto_aes_cmac_256_decrypt() argument
964 struct sk_buff *skb = rx->skb; in ieee80211_crypto_aes_cmac_256_decrypt()
966 struct ieee80211_key *key = rx->key; in ieee80211_crypto_aes_cmac_256_decrypt()
1061 ieee80211_crypto_aes_gmac_decrypt(struct ieee80211_rx_data *rx) in ieee80211_crypto_aes_gmac_decrypt() argument
1063 struct sk_buff *skb = rx->skb; in ieee80211_crypto_aes_gmac_decrypt()
1065 struct ieee80211_key *key = rx->key; in ieee80211_crypto_aes_gmac_decrypt()