mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
878066e745
commit
1a7c5b7ef0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, tsf_time, 1000000);
|
||||||
tsf_time -= ath9k_hw_gettsf32(ah);
|
tsf_time -= ath9k_hw_gettsf32(ah);
|
||||||
tsf_time = msecs_to_jiffies(tsf_time / 1000) + 1;
|
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,
|
ath_dbg(common, CHAN_CTX,
|
||||||
"Setup chanctx timer with timeout: %d ms\n", jiffies_to_msecs(tsf_time));
|
"Setup chanctx timer with timeout: %d ms\n", jiffies_to_msecs(tsf_time));
|
||||||
|
|
Loading…
Add table
Reference in a new issue