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:
a2b2860
)
ath9k: Check beaconing mode properly
author
Sujith Manoharan
<
[email protected]
>
Mon, 15 Sep 2014 05:55:51 +0000
(11:25 +0530)
committer
John W. Linville
<
[email protected]
>
Mon, 15 Sep 2014 19:00:54 +0000
(15:00 -0400)
In MCC mode, the TSF of a context needs to be
adjusted only if it is GO/AP.
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 e2712b08c7975f2d1f9664d55b4f788c90b2a435..77c99eb5583481cbbc7e8e054fa767370d274b3f 100644
(file)
--- 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);