summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-09-10 15:45:59 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-09-11 21:27:39 +0200
commit4899827d39ec913d4e46e77f4537945f3e68dca4 (patch)
tree5ed1812a2c46c01dc662e9655cc550be3c58b95c /drivers
parentath9k: Clear offchannel duration properly (diff)
downloadlinux-4899827d39ec913d4e46e77f4537945f3e68dca4.tar.xz
linux-4899827d39ec913d4e46e77f4537945f3e68dca4.zip
ath9k: Fix channel switch time duration
Since the NoA duration is the maximum time the GO interface can be offline, it needs to include the time take to switch channels in the HW. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-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 09ff8a6e8966..a42fd85def2a 100644
--- a/drivers/net/wireless/ath/ath9k/channel.c
+++ b/drivers/net/wireless/ath/ath9k/channel.c
@@ -419,7 +419,7 @@ void ath_chanctx_event(struct ath_softc *sc, struct ieee80211_vif *vif,
avp->noa_index++;
avp->noa_start = tsf_time;
avp->noa_duration =
- TU_TO_USEC(cur_conf->beacon_interval) / 2 -
+ TU_TO_USEC(cur_conf->beacon_interval) / 2 +
sc->sched.channel_switch_time;
if (test_bit(ATH_OP_SCANNING, &common->op_flags))