From: Janusz Dziedzic Date: Fri, 27 Nov 2015 08:37:12 +0000 (+0100) Subject: ath9k: MCC enable Opportunistic Power Save X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3edbf0ba0494ad4c576763e733ad0da3bed2f621;p=deliverable%2Flinux.git 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath9k/channel.c b/drivers/net/wireless/ath/ath9k/channel.c index 2afb8dabf39a..31b4d0efcf6b 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) {