ath9k: Check beaconing mode properly
In MCC mode, the TSF of a context needs to be adjusted only if it is GO/AP. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
a2b2860150
commit
7f30eac993
1 changed files with 3 additions and 0 deletions
|
@ -260,6 +260,9 @@ static void ath_chanctx_adjust_tbtt_delta(struct ath_softc *sc)
|
||||||
cur = sc->cur_chan;
|
cur = sc->cur_chan;
|
||||||
prev = ath_chanctx_get_next(sc, cur);
|
prev = ath_chanctx_get_next(sc, cur);
|
||||||
|
|
||||||
|
if (!prev->switch_after_beacon)
|
||||||
|
return;
|
||||||
|
|
||||||
getrawmonotonic(&ts);
|
getrawmonotonic(&ts);
|
||||||
cur_tsf = (u32) cur->tsf_val +
|
cur_tsf = (u32) cur->tsf_val +
|
||||||
ath9k_hw_get_tsf_offset(&cur->tsf_ts, &ts);
|
ath9k_hw_get_tsf_offset(&cur->tsf_ts, &ts);
|
||||||
|
|
Loading…
Add table
Reference in a new issue