kernel: add a recent upstream commit (post-3.3) to the ssb update patch, required...
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 568-ath9k_fix_wep.patch
1 --- a/drivers/net/wireless/ath/ath9k/recv.c
2 +++ b/drivers/net/wireless/ath/ath9k/recv.c
3 @@ -823,6 +823,14 @@ static bool ath9k_rx_accept(struct ath_c
4 (ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC |
5 ATH9K_RXERR_KEYMISS));
6
7 + /*
8 + * Key miss events are only relevant for pairwise keys where the
9 + * descriptor does contain a valid key index. This has been observed
10 + * mostly with CCMP encryption.
11 + */
12 + if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID)
13 + rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS;
14 +
15 if (!rx_stats->rs_datalen)
16 return false;
17 /*