From: Bassem Dawood <bassem@morsemicro.com>
To: johannes@sipsolutions.net, linux-wireless@vger.kernel.org
Cc: Bassem Dawood <bassem@morsemicro.com>
Subject: [PATCH] mac80211: Enable power save after receiving NULL packet ACK
Date: Sat, 27 Feb 2021 16:58:15 +1100 [thread overview]
Message-ID: <20210227055815.14838-1-bassem@morsemicro.com> (raw)
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@morsemicro.com>
---
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
next reply other threads:[~2021-02-27 5:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-27 5:58 Bassem Dawood [this message]
2021-04-08 13:26 ` [PATCH] mac80211: Enable power save after receiving NULL packet ACK Johannes Berg
2021-04-09 1:32 ` Bassem Dawood
2021-04-20 4:58 ` Bassem Dawood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210227055815.14838-1-bassem@morsemicro.com \
--to=bassem@morsemicro.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).