diff options
Diffstat (limited to 'net/mac80211/wpa.c')
-rw-r--r-- | net/mac80211/wpa.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/net/mac80211/wpa.c b/net/mac80211/wpa.c index 2f33df0dcccf..6db649480e8f 100644 --- a/net/mac80211/wpa.c +++ b/net/mac80211/wpa.c | |||
@@ -127,7 +127,7 @@ ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx) | |||
127 | if (!(rx->flags & IEEE80211_RX_RA_MATCH)) | 127 | if (!(rx->flags & IEEE80211_RX_RA_MATCH)) |
128 | return RX_DROP_UNUSABLE; | 128 | return RX_DROP_UNUSABLE; |
129 | 129 | ||
130 | mac80211_ev_michael_mic_failure(rx->dev, rx->key->conf.keyidx, | 130 | mac80211_ev_michael_mic_failure(rx->sdata, rx->key->conf.keyidx, |
131 | (void *) skb->data); | 131 | (void *) skb->data); |
132 | return RX_DROP_UNUSABLE; | 132 | return RX_DROP_UNUSABLE; |
133 | } | 133 | } |
@@ -152,9 +152,6 @@ static int tkip_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) | |||
152 | int len, tail; | 152 | int len, tail; |
153 | u8 *pos; | 153 | u8 *pos; |
154 | 154 | ||
155 | info->control.icv_len = TKIP_ICV_LEN; | ||
156 | info->control.iv_len = TKIP_IV_LEN; | ||
157 | |||
158 | if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) && | 155 | if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) && |
159 | !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) { | 156 | !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) { |
160 | /* hwaccel - with no need for preallocated room for IV/ICV */ | 157 | /* hwaccel - with no need for preallocated room for IV/ICV */ |
@@ -256,7 +253,7 @@ ieee80211_crypto_tkip_decrypt(struct ieee80211_rx_data *rx) | |||
256 | 253 | ||
257 | res = ieee80211_tkip_decrypt_data(rx->local->wep_rx_tfm, | 254 | res = ieee80211_tkip_decrypt_data(rx->local->wep_rx_tfm, |
258 | key, skb->data + hdrlen, | 255 | key, skb->data + hdrlen, |
259 | skb->len - hdrlen, rx->sta->addr, | 256 | skb->len - hdrlen, rx->sta->sta.addr, |
260 | hdr->addr1, hwaccel, rx->queue, | 257 | hdr->addr1, hwaccel, rx->queue, |
261 | &rx->tkip_iv32, | 258 | &rx->tkip_iv32, |
262 | &rx->tkip_iv16); | 259 | &rx->tkip_iv16); |
@@ -374,9 +371,6 @@ static int ccmp_encrypt_skb(struct ieee80211_tx_data *tx, struct sk_buff *skb) | |||
374 | u8 *pos, *pn; | 371 | u8 *pos, *pn; |
375 | int i; | 372 | int i; |
376 | 373 | ||
377 | info->control.icv_len = CCMP_MIC_LEN; | ||
378 | info->control.iv_len = CCMP_HDR_LEN; | ||
379 | |||
380 | if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) && | 374 | if ((tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) && |
381 | !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) { | 375 | !(tx->key->conf.flags & IEEE80211_KEY_FLAG_GENERATE_IV)) { |
382 | /* hwaccel - with no need for preallocated room for CCMP " | 376 | /* hwaccel - with no need for preallocated room for CCMP " |