aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-04 19:06:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-09-04 19:06:02 +0000
commit94dac0725a504a91773200dec58d8efa31dc2404 (patch)
treee33d549f633744e4abc7d6df82f9e1f4fd1fa7b9 /package
parent548f9edbf6704f6c8833040c3e1a7a04f26cdf1a (diff)
downloadmaster-187ad058-94dac0725a504a91773200dec58d8efa31dc2404.tar.gz
master-187ad058-94dac0725a504a91773200dec58d8efa31dc2404.tar.bz2
master-187ad058-94dac0725a504a91773200dec58d8efa31dc2404.zip
ath9k: fix beacon timer init on reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28169 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/585-ath9k_fix_beacon_timer.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch b/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch
new file mode 100644
index 0000000000..e1fe4b75db
--- /dev/null
+++ b/package/mac80211/patches/585-ath9k_fix_beacon_timer.patch
@@ -0,0 +1,11 @@
+--- 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);
+
+ /*
+ * In AP mode we enable the beacon timers and SWBA interrupts to