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>
This commit is contained in:
Janusz Dziedzic 2015-11-27 09:37:12 +01:00 committed by Kalle Valo
parent c1b7bea038
commit 3edbf0ba04
1 changed files with 2 additions and 0 deletions

View File

@ -1505,6 +1505,8 @@ void ath9k_beacon_add_noa(struct ath_softc *sc, struct ath_vif *avp,
noa->index = avp->noa_index; noa->index = avp->noa_index;
noa->oppps_ctwindow = ath9k_get_ctwin(sc, avp); noa->oppps_ctwindow = ath9k_get_ctwin(sc, avp);
if (noa->oppps_ctwindow)
noa->oppps_ctwindow |= BIT(7);
if (avp->noa_duration) { if (avp->noa_duration) {
if (avp->periodic_noa) { if (avp->periodic_noa) {