summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-03 10:23:51 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-03 10:23:51 +0000
commitfab832ff3241334b296738cb2d17f9aacb6008ff (patch)
treecb6fd0e9625175bf59e522892a458fbf89024c7a /package/mac80211/patches
parent61f9f96a63312e19a5ff57dc8b75d3d6b62e4e30 (diff)
ath9k: fix WEP connection issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30009 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/568-ath9k_fix_wep.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/mac80211/patches/568-ath9k_fix_wep.patch b/package/mac80211/patches/568-ath9k_fix_wep.patch
new file mode 100644
index 000000000..f18553f74
--- /dev/null
+++ b/package/mac80211/patches/568-ath9k_fix_wep.patch
@@ -0,0 +1,17 @@
+--- 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;
+ /*