diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-09-15 05:55:51 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-15 19:00:54 (GMT) |
commit | 7f30eac9938daf12e34334c8eb1f8fba37fc7ace (patch) | |
tree | 1d9db30db76c48d7efc859c69b86d4d05635bbd5 /drivers/net/wireless/ath/ath9k/channel.c | |
parent | a2b28601503e8d0586d207732a0e8de90e6ce05b (diff) | |
download | linux-7f30eac9938daf12e34334c8eb1f8fba37fc7ace.tar.xz |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/channel.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/channel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index e2712b0..77c99eb5 100644 --- a/drivers/net/wireless/ath/ath9k/channel.c +++ b/drivers/net/wireless/ath/ath9k/channel.c @@ -260,6 +260,9 @@ static void ath_chanctx_adjust_tbtt_delta(struct ath_softc *sc) cur = sc->cur_chan; prev = ath_chanctx_get_next(sc, cur); + if (!prev->switch_after_beacon) + return; + getrawmonotonic(&ts); cur_tsf = (u32) cur->tsf_val + ath9k_hw_get_tsf_offset(&cur->tsf_ts, &ts); |