mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-31 19:21:07 +02:00
fab832ff32
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30009 3c298f89-4303-0410-b956-a3cf2f4a3e73
18 lines
583 B
Diff
18 lines
583 B
Diff
--- a/drivers/net/wireless/ath/ath9k/recv.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/recv.c
|
|
@@ -823,6 +823,14 @@ static bool ath9k_rx_accept(struct ath_c
|
|
(ATH9K_RXERR_DECRYPT | ATH9K_RXERR_CRC | ATH9K_RXERR_MIC |
|
|
ATH9K_RXERR_KEYMISS));
|
|
|
|
+ /*
|
|
+ * Key miss events are only relevant for pairwise keys where the
|
|
+ * descriptor does contain a valid key index. This has been observed
|
|
+ * mostly with CCMP encryption.
|
|
+ */
|
|
+ if (rx_stats->rs_keyix == ATH9K_RXKEYIX_INVALID)
|
|
+ rx_stats->rs_status &= ~ATH9K_RXERR_KEYMISS;
|
|
+
|
|
if (!rx_stats->rs_datalen)
|
|
return false;
|
|
/*
|