summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ath9k.h
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-09-10 19:16:00 +0530
committerJohn W. Linville <linville@tuxdriver.com>2014-09-11 15:27:40 -0400
commit167bf96dd87d2a8360cb9e9783006876dac4f579 (patch)
tree90a91f5ebff867b65ffc2a6ef87087f89159a412 /drivers/net/wireless/ath/ath9k/ath9k.h
parent4899827d39ec913d4e46e77f4537945f3e68dca4 (diff)
downloadlinux-167bf96dd87d2a8360cb9e9783006876dac4f579.tar.gz
linux-167bf96dd87d2a8360cb9e9783006876dac4f579.tar.bz2
linux-167bf96dd87d2a8360cb9e9783006876dac4f579.zip
ath9k: Fix beacon miss handling
The NoA duration for a GO is half the beacon interval and a concurrent context like a STA can be active only for that duration, before switching back to the GO's operating channel. Currently, when multiple beacons are missed, the dwell time for the STA context is extended to improve the chances of receiving a beacon. But the NoA is not updated and this will cause problems since the GO is offline for a period that is longer than the advertised duration. Fix this by ensuring that the NoA is updated first before extending the time slot for the STA context. Also make sure that non-periodic NoA is used for a one-time, longer absence period. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 305db1a6889a..660c1515bb7d 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -380,6 +380,7 @@ struct ath_chanctx_sched {
bool offchannel_pending;
bool wait_switch;
bool force_noa_update;
+ bool extend_absence;
enum ath_chanctx_state state;
u8 beacon_miss;