diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-02-03 10:23:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-02-03 10:23:51 +0000 |
commit | 99ab6e575af01846e0043db5d1dd1dc19e9ae803 (patch) | |
tree | e9955cddbef9b5b086b5b5324cc302621ec8e5aa /package/mac80211/patches/568-ath9k_fix_wep.patch | |
parent | 477c3c40156cca124bec0520a733f455d0085914 (diff) | |
download | mtk-20170518-99ab6e575af01846e0043db5d1dd1dc19e9ae803.zip mtk-20170518-99ab6e575af01846e0043db5d1dd1dc19e9ae803.tar.gz mtk-20170518-99ab6e575af01846e0043db5d1dd1dc19e9ae803.tar.bz2 |
ath9k: fix WEP connection issues
SVN-Revision: 30009
Diffstat (limited to 'package/mac80211/patches/568-ath9k_fix_wep.patch')
-rw-r--r-- | package/mac80211/patches/568-ath9k_fix_wep.patch | 17 |
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 0000000..f18553f --- /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; + /* |