summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-02 01:10:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-02 01:10:01 +0000
commit8becf17417efa2a3dbe7b1a19ca80bc626060d45 (patch)
tree9da135c8685d76d66da9da6d760653eeeed67dd8 /package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch
parent98c78c13db41f8c51d7e5d5098449e03f1305b12 (diff)
downloadmaster-31e0f0ae-8becf17417efa2a3dbe7b1a19ca80bc626060d45.tar.gz
master-31e0f0ae-8becf17417efa2a3dbe7b1a19ca80bc626060d45.tar.bz2
master-31e0f0ae-8becf17417efa2a3dbe7b1a19ca80bc626060d45.zip
ath9k: fix adhoc beacon issues (#9163)
SVN-Revision: 26395
Diffstat (limited to 'package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch')
-rw-r--r--package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch b/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch
new file mode 100644
index 0000000000..50a5bc1182
--- /dev/null
+++ b/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch
@@ -0,0 +1,17 @@
+--- a/drivers/net/wireless/ath/ath9k/beacon.c
++++ b/drivers/net/wireless/ath/ath9k/beacon.c
+@@ -392,14 +392,6 @@ void ath_beacon_tasklet(unsigned long da
+ tsf += TU_TO_USEC(ah->config.sw_beacon_response_time);
+ tsftu = TSF_TO_TU((tsf * ATH_BCBUF) >>32, tsf * ATH_BCBUF);
+ slot = (tsftu % (intval * ATH_BCBUF)) / intval;
+- /*
+- * Reverse the slot order to get slot 0 on the TBTT offset that does
+- * not require TSF adjustment and other slots adding
+- * slot/ATH_BCBUF * beacon_int to timestamp. For example, with
+- * ATH_BCBUF = 4, we process beacon slots as follows: 3 2 1 0 3 2 1 ..
+- * and slot 0 is at correct offset to TBTT.
+- */
+- slot = ATH_BCBUF - slot - 1;
+ vif = sc->beacon.bslot[slot];
+
+ ath_dbg(common, ATH_DBG_BEACON,