From: Sujith Manoharan <c_man...@qca.qualcomm.com>

In MCC mode, the TSF of a context needs to be
adjusted only if it is GO/AP.

Signed-off-by: Sujith Manoharan <c_man...@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/channel.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/ath/ath9k/channel.c 
b/drivers/net/wireless/ath/ath9k/channel.c
index 3906df9..7be940f 100644
--- a/drivers/net/wireless/ath/ath9k/channel.c
+++ b/drivers/net/wireless/ath/ath9k/channel.c
@@ -262,6 +262,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);
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to