1 --- a/drivers/net/wireless/ath/ath9k/beacon.c
2 +++ b/drivers/net/wireless/ath/ath9k/beacon.c
3 @@ -526,16 +526,13 @@ static void ath_beacon_config_ap(struct
7 - /* Configure the timers only when the TSF has to be reset */
9 - if (!(sc->sc_flags & SC_OP_TSF_RESET))
12 /* NB: the beacon interval is kept internally in TU's */
13 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD;
14 intval /= ATH_BCBUF; /* for staggered beacons */
16 - intval |= ATH9K_BEACON_RESET_TSF;
18 + if (sc->sc_flags & SC_OP_TSF_RESET)
19 + intval |= ATH9K_BEACON_RESET_TSF;
22 * In AP mode we enable the beacon timers and SWBA interrupts to