diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-09-15 11:25:51 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-15 15:00:54 -0400 |
commit | 7f30eac9938daf12e34334c8eb1f8fba37fc7ace (patch) | |
tree | 1d9db30db76c48d7efc859c69b86d4d05635bbd5 /drivers/net | |
parent | a2b28601503e8d0586d207732a0e8de90e6ce05b (diff) | |
download | lwn-7f30eac9938daf12e34334c8eb1f8fba37fc7ace.tar.gz lwn-7f30eac9938daf12e34334c8eb1f8fba37fc7ace.zip |
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')
-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 e2712b08c797..77c99eb55834 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); |