aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-22 17:28:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-11-22 17:28:26 +0000
commit2cec381e97d7f19c64077364823cecefd42f7039 (patch)
tree5d1e276a24ed838608498804125a68bfa6647ae9 /package/mac80211
parentaab31771f8120a719f201417e0b47d71f8da9898 (diff)
downloadupstream-2cec381e97d7f19c64077364823cecefd42f7039.tar.gz
upstream-2cec381e97d7f19c64077364823cecefd42f7039.tar.bz2
upstream-2cec381e97d7f19c64077364823cecefd42f7039.zip
ath9k: fix key search for a-mpdu on ar9300
SVN-Revision: 24097
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/530-ath9k_ar9300_keysearch_fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/mac80211/patches/530-ath9k_ar9300_keysearch_fix.patch b/package/mac80211/patches/530-ath9k_ar9300_keysearch_fix.patch
new file mode 100644
index 0000000000..ec13e5b45d
--- /dev/null
+++ b/package/mac80211/patches/530-ath9k_ar9300_keysearch_fix.patch
@@ -0,0 +1,23 @@
+--- a/drivers/net/wireless/ath/ath9k/hw.c
++++ b/drivers/net/wireless/ath/ath9k/hw.c
+@@ -1854,6 +1854,10 @@ int ath9k_hw_fill_cap_info(struct ath_hw
+
+ ah->misc_mode |= AR_PCU_MIC_NEW_LOC_ENA;
+
++ /* enable key search for every frame in an aggregate */
++ if (AR_SREV_9300_20_OR_LATER(ah))
++ ah->misc_mode |= AR_PCU_ALWAYS_PERFORM_KEYSEARCH;
++
+ pCap->low_2ghz_chan = 2312;
+ pCap->high_2ghz_chan = 2732;
+
+--- a/drivers/net/wireless/ath/ath9k/reg.h
++++ b/drivers/net/wireless/ath/ath9k/reg.h
+@@ -1575,6 +1575,7 @@ enum {
+ #define AR_PCU_TBTT_PROTECT 0x00200000
+ #define AR_PCU_CLEAR_VMF 0x01000000
+ #define AR_PCU_CLEAR_BA_VALID 0x04000000
++#define AR_PCU_ALWAYS_PERFORM_KEYSEARCH 0x10000000
+
+ #define AR_PCU_BT_ANT_PREVENT_RX 0x00100000
+ #define AR_PCU_BT_ANT_PREVENT_RX_S 20