|
@@ -659,6 +659,7 @@ void ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif,
|
|
|
sc->sched.beacon_miss = 0;
|
|
|
|
|
|
if (sc->sched.state == ATH_CHANCTX_STATE_FORCE_ACTIVE ||
|
|
|
+ !sc->sched.beacon_adjust ||
|
|
|
!sc->cur_chan->tsf_val)
|
|
|
break;
|
|
|
|
|
@@ -672,7 +673,7 @@ void ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif,
|
|
|
ath9k_hw_get_tsf_offset(&sc->cur_chan->tsf_ts, NULL);
|
|
|
tsf_time += ath9k_hw_gettsf32(ah);
|
|
|
|
|
|
-
|
|
|
+ sc->sched.beacon_adjust = false;
|
|
|
ath_chanctx_setup_timer(sc, tsf_time);
|
|
|
break;
|
|
|
case ATH_CHANCTX_EVENT_AUTHORIZED:
|
|
@@ -717,6 +718,7 @@ void ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif,
|
|
|
|
|
|
ath_chanctx_setup_timer(sc, tsf_time);
|
|
|
sc->sched.beacon_pending = true;
|
|
|
+ sc->sched.beacon_adjust = true;
|
|
|
break;
|
|
|
case ATH_CHANCTX_EVENT_ENABLE_MULTICHANNEL:
|
|
|
if (sc->cur_chan == &sc->offchannel.chan ||
|