ath9k: add a better fix for beacon timer reliability
SVN-Revision: 28211
This commit is contained in:
parent
0fe2a1b288
commit
6d708d8f02
1 changed files with 7 additions and 8 deletions
|
@ -1,11 +1,10 @@
|
||||||
--- a/drivers/net/wireless/ath/ath9k/beacon.c
|
--- a/drivers/net/wireless/ath/ath9k/beacon.c
|
||||||
+++ b/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
|
@@ -517,6 +517,7 @@ static void ath_beacon_config_ap(struct
|
||||||
/* NB: the beacon interval is kept internally in TU's */
|
/* Set the computed AP beacon timers */
|
||||||
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);
|
|
||||||
|
|
||||||
/*
|
ath9k_hw_disable_interrupts(ah);
|
||||||
* In AP mode we enable the beacon timers and SWBA interrupts to
|
+ sc->sc_flags |= SC_OP_TSF_RESET;
|
||||||
|
ath9k_beacon_init(sc, nexttbtt, intval);
|
||||||
|
sc->beacon.bmisscnt = 0;
|
||||||
|
ath9k_hw_set_interrupts(ah, ah->imask);
|
||||||
|
|
Loading…
Reference in a new issue