Search Linux Wireless

[PATCH] mac80211: Enable power save after receiving NULL packet ACK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Trigger dynamic_ps_timer to re-evaluate power saving once a null function
packet (with PM = 1) is ACKed.

Signed-off-by: Bassem Dawood <bassem@xxxxxxxxxxxxxx>
---
 net/mac80211/status.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 3485610755ef..c106f81478df 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -1013,9 +1013,9 @@ static void __ieee80211_tx_status(struct ieee80211_hw *hw,
 		if (info->flags & IEEE80211_TX_STAT_ACK) {
 			local->ps_sdata->u.mgd.flags |=
 					IEEE80211_STA_NULLFUNC_ACKED;
-		} else
-			mod_timer(&local->dynamic_ps_timer, jiffies +
-					msecs_to_jiffies(10));
+		}
+		mod_timer(&local->dynamic_ps_timer, jiffies +
+				msecs_to_jiffies(10));
 	}
 
 	ieee80211_report_used_skb(local, skb, false);
-- 
2.17.1




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux