* [PATCH] mac80211: allow driver to be stateless wrt. SMSP requests
@ 2013-02-11 10:57 Johannes Berg
2013-02-12 10:23 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2013-02-11 10:57 UTC (permalink / raw)
To: linux-wireless; +Cc: Emmanuel Grumbach
From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Bail out if no update is made to the SMPS state. This
allows the driver to avoid duplicating the state.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
net/mac80211/ht.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c
index 61ac7c4..9e7560b 100644
--- a/net/mac80211/ht.c
+++ b/net/mac80211/ht.c
@@ -406,6 +406,9 @@ void ieee80211_request_smps(struct ieee80211_vif *vif,
if (WARN_ON(smps_mode == IEEE80211_SMPS_OFF))
smps_mode = IEEE80211_SMPS_AUTOMATIC;
+ if (sdata->u.mgd.driver_smps_mode == smps_mode)
+ return;
+
sdata->u.mgd.driver_smps_mode = smps_mode;
ieee80211_queue_work(&sdata->local->hw,
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mac80211: allow driver to be stateless wrt. SMSP requests
2013-02-11 10:57 [PATCH] mac80211: allow driver to be stateless wrt. SMSP requests Johannes Berg
@ 2013-02-12 10:23 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-02-12 10:23 UTC (permalink / raw)
To: linux-wireless; +Cc: Emmanuel Grumbach
On Mon, 2013-02-11 at 11:57 +0100, Johannes Berg wrote:
> From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
>
> Bail out if no update is made to the SMPS state. This
> allows the driver to avoid duplicating the state.
Applied.
johannes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-12 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11 10:57 [PATCH] mac80211: allow driver to be stateless wrt. SMSP requests Johannes Berg
2013-02-12 10:23 ` Johannes Berg
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).