浏览代码

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>
Sujith Manoharan 11 年之前
父节点
当前提交
4899827d39
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/wireless/ath/ath9k/channel.c

+ 1 - 1
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_index++;
 			avp->noa_start = tsf_time;
 			avp->noa_start = tsf_time;
 			avp->noa_duration =
 			avp->noa_duration =
-				TU_TO_USEC(cur_conf->beacon_interval) / 2 -
+				TU_TO_USEC(cur_conf->beacon_interval) / 2 +
 				sc->sched.channel_switch_time;
 				sc->sched.channel_switch_time;
 
 
 			if (test_bit(ATH_OP_SCANNING, &common->op_flags))
 			if (test_bit(ATH_OP_SCANNING, &common->op_flags))