aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-11 11:16:20 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-09-11 11:16:20 +0000
commit6d708d8f0274bc173b12577ed02d1e4ab0cdd57d (patch)
treed72598c0ecd9c7969f4dd27c0760ff434319cf37 /package
parent0fe2a1b288fed27827d869e45c9684d080a4e694 (diff)
downloadupstream-6d708d8f0274bc173b12577ed02d1e4ab0cdd57d.tar.gz
upstream-6d708d8f0274bc173b12577ed02d1e4ab0cdd57d.tar.bz2
upstream-6d708d8f0274bc173b12577ed02d1e4ab0cdd57d.zip
ath9k: add a better fix for beacon timer reliability
SVN-Revision: 28211
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/585-ath9k_fix_beacon_timer.patch15
1 files changed, 7 insertions, 8 deletions
diff --git a/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch b/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch
index e1fe4b75db..bb924b7a85 100644
--- a/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch
+++ b/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch
@@ -1,11 +1,10 @@
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
-@@ -505,7 +505,7 @@ static void ath_beacon_config_ap(struct
- /* NB: the beacon interval is kept internally in TU's */
- intval = TU_TO_USEC(conf->beacon_interval);
- intval /= ATH_BCBUF; /* for staggered beacons */
-- nexttbtt = intval;
-+ nexttbtt = roundup(ath9k_hw_gettsf32(ah) + TU_TO_USEC(FUDGE), intval);
+@@ -517,6 +517,7 @@ static void ath_beacon_config_ap(struct
+ /* Set the computed AP beacon timers */
- /*
- * In AP mode we enable the beacon timers and SWBA interrupts to
+ ath9k_hw_disable_interrupts(ah);
++ sc->sc_flags |= SC_OP_TSF_RESET;
+ ath9k_beacon_init(sc, nexttbtt, intval);
+ sc->beacon.bmisscnt = 0;
+ ath9k_hw_set_interrupts(ah, ah->imask);