diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-14 15:23:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-16 16:45:36 -0400 |
commit | c31c8261bf7b817e323d29ba66c031f6b0982680 (patch) | |
tree | fd0c61fadfe6753c0a00d74a01315aa4771ca987 /drivers/net/wireless/ath | |
parent | e392700741a4a5f061f3fcc9f5f2ceb0e0b0953e (diff) |
ath9k: make beacon timer initialization more reliable
When starting the AP beacon timer, it assumes that the TSF has recently
been cleared. Set the SC_OP_TSF_RESET flag to ensure that this is always
the case.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/beacon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index 22e8e2580116..6d7088b02611 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c | |||
@@ -517,6 +517,7 @@ static void ath_beacon_config_ap(struct ath_softc *sc, | |||
517 | /* Set the computed AP beacon timers */ | 517 | /* Set the computed AP beacon timers */ |
518 | 518 | ||
519 | ath9k_hw_disable_interrupts(ah); | 519 | ath9k_hw_disable_interrupts(ah); |
520 | sc->sc_flags |= SC_OP_TSF_RESET; | ||
520 | ath9k_beacon_init(sc, nexttbtt, intval); | 521 | ath9k_beacon_init(sc, nexttbtt, intval); |
521 | sc->beacon.bmisscnt = 0; | 522 | sc->beacon.bmisscnt = 0; |
522 | ath9k_hw_set_interrupts(ah, ah->imask); | 523 | ath9k_hw_set_interrupts(ah, ah->imask); |