summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-08-27 12:07:25 +0530
committerJohn W. Linville <linville@tuxdriver.com>2014-08-28 14:50:13 -0400
commit1a7c5b7ef0cf93b42b9181973ce283fe77fb6093 (patch)
treeb455c625785155fc02aa83f99ddbf7a2aa77e657
parent878066e745b54578409ea765cfc718fcd99a4802 (diff)
downloadblackbird-op-linux-1a7c5b7ef0cf93b42b9181973ce283fe77fb6093.tar.gz
blackbird-op-linux-1a7c5b7ef0cf93b42b9181973ce283fe77fb6093.zip
ath9k: Fix channel context timer
Setup the channel context correctly. Not doing this was causing beacon loss in a P2P-GO/STA concurrent setup. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c
index f8f47571d98c..409f912a67c7 100644
--- a/drivers/net/wireless/ath/ath9k/channel.c
+++ b/drivers/net/wireless/ath/ath9k/channel.c
@@ -294,7 +294,7 @@ static void ath_chanctx_setup_timer(struct ath_softc *sc, u32 tsf_time)
ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, tsf_time, 1000000);
tsf_time -= ath9k_hw_gettsf32(ah);
tsf_time = msecs_to_jiffies(tsf_time / 1000) + 1;
- mod_timer(&sc->sched.timer, tsf_time);
+ mod_timer(&sc->sched.timer, jiffies + tsf_time);
ath_dbg(common, CHAN_CTX,
"Setup chanctx timer with timeout: %d ms\n", jiffies_to_msecs(tsf_time));
OpenPOWER on IntegriCloud