Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ath9k: fix beacon timer init on reset

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28169 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information...
commit 4b62fffaa5b2d2185cac8bfa0ca9e8d8e825bb1a 1 parent 3c4461a
nbd authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 package/mac80211/patches/585-ath9k_fix_beacon_timer.patch
View
11 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
Please sign in to comment.
Something went wrong with that request. Please try again.