diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/beacon.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index 1660ef17aaf5..06eaaa9ece6b 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c | |||
@@ -525,16 +525,13 @@ static void ath_beacon_config_ap(struct ath_softc *sc, | |||
525 | { | 525 | { |
526 | u32 nexttbtt, intval; | 526 | u32 nexttbtt, intval; |
527 | 527 | ||
528 | /* Configure the timers only when the TSF has to be reset */ | ||
529 | |||
530 | if (!(sc->sc_flags & SC_OP_TSF_RESET)) | ||
531 | return; | ||
532 | |||
533 | /* NB: the beacon interval is kept internally in TU's */ | 528 | /* NB: the beacon interval is kept internally in TU's */ |
534 | intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; | 529 | intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; |
535 | intval /= ATH_BCBUF; /* for staggered beacons */ | 530 | intval /= ATH_BCBUF; /* for staggered beacons */ |
536 | nexttbtt = intval; | 531 | nexttbtt = intval; |
537 | intval |= ATH9K_BEACON_RESET_TSF; | 532 | |
533 | if (sc->sc_flags & SC_OP_TSF_RESET) | ||
534 | intval |= ATH9K_BEACON_RESET_TSF; | ||
538 | 535 | ||
539 | /* | 536 | /* |
540 | * In AP mode we enable the beacon timers and SWBA interrupts to | 537 | * In AP mode we enable the beacon timers and SWBA interrupts to |