aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2015-11-27 09:37:12 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2015-12-08 16:50:52 +0200
commit3edbf0ba0494ad4c576763e733ad0da3bed2f621 (patch)
treeb031635fef9918706ca093122c25e09a14c2a7da
parentc1b7bea038f00e710e738d8a8a76dc87ceb013f8 (diff)
downloadwireless-testing-3edbf0ba0494ad4c576763e733ad0da3bed2f621.tar.gz
ath9k: MCC enable Opportunistic Power Save
When adding NOA attr enable Opportunistic Power Save. Before we calculate ctwindow but didn't enable oppps. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c
index 2afb8dabf39a98..31b4d0efcf6bdf 100644
--- a/drivers/net/wireless/ath/ath9k/channel.c
+++ b/drivers/net/wireless/ath/ath9k/channel.c
@@ -1505,6 +1505,8 @@ void ath9k_beacon_add_noa(struct ath_softc *sc, struct ath_vif *avp,
noa->index = avp->noa_index;
noa->oppps_ctwindow = ath9k_get_ctwin(sc, avp);
+ if (noa->oppps_ctwindow)
+ noa->oppps_ctwindow |= BIT(7);
if (avp->noa_duration) {
if (avp->periodic_noa) {