projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
878066e
)
ath9k: Fix channel context timer
author
Sujith Manoharan
<
[email protected]
>
Wed, 27 Aug 2014 06:37:25 +0000
(12:07 +0530)
committer
John W. Linville
<
[email protected]
>
Thu, 28 Aug 2014 18:50:13 +0000
(14:50 -0400)
Setup the channel context correctly. Not doing this was
causing beacon loss in a P2P-GO/STA concurrent setup.
Signed-off-by: Sujith Manoharan <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/channel.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/channel.c
b/drivers/net/wireless/ath/ath9k/channel.c
index f8f47571d98c94f267b95911ab4ab22941f8abb3..409f912a67c7c2b760f90ce2c473fbd716566be3 100644
(file)
--- 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));