|
@@ -1049,11 +1049,9 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
|
|
int hdrlen, padpos, padsize;
|
|
int hdrlen, padpos, padsize;
|
|
u8 keyix;
|
|
u8 keyix;
|
|
__le16 fc;
|
|
__le16 fc;
|
|
- bool is_mc;
|
|
|
|
|
|
|
|
/* see if any padding is done by the hw and remove it */
|
|
/* see if any padding is done by the hw and remove it */
|
|
hdr = (struct ieee80211_hdr *) skb->data;
|
|
hdr = (struct ieee80211_hdr *) skb->data;
|
|
- is_mc = !!is_multicast_ether_addr(hdr->addr1);
|
|
|
|
hdrlen = ieee80211_get_hdrlen_from_skb(skb);
|
|
hdrlen = ieee80211_get_hdrlen_from_skb(skb);
|
|
fc = hdr->frame_control;
|
|
fc = hdr->frame_control;
|
|
padpos = ath9k_cmn_padpos(hdr->frame_control);
|
|
padpos = ath9k_cmn_padpos(hdr->frame_control);
|
|
@@ -1074,7 +1072,7 @@ static void ath9k_rx_skb_postprocess(struct ath_common *common,
|
|
|
|
|
|
keyix = rx_stats->rs_keyix;
|
|
keyix = rx_stats->rs_keyix;
|
|
|
|
|
|
- if ((is_mc || !(keyix == ATH9K_RXKEYIX_INVALID)) && !decrypt_error &&
|
|
|
|
|
|
+ if (!(keyix == ATH9K_RXKEYIX_INVALID) && !decrypt_error &&
|
|
ieee80211_has_protected(fc)) {
|
|
ieee80211_has_protected(fc)) {
|
|
rxs->flag |= RX_FLAG_DECRYPTED;
|
|
rxs->flag |= RX_FLAG_DECRYPTED;
|
|
} else if (ieee80211_has_protected(fc)
|
|
} else if (ieee80211_has_protected(fc)
|