Skip to contentSkip to conversation

mac80211: allow driver to be stateless wrt. SMSP requests

PATCH Applied Johannes Berg 1 participant 2 messages Feb 11, 2013 – Feb 12, 2013 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: allow driver to be stateless wrt. SMSP requests

From: Emmanuel Grumbach <[email protected]>

Bail out if no update is made to the SMPS state. This allows the driver to avoid duplicating the state.

---
 net/mac80211/ht.c | 3 +++
 1 file changed, 3 insertions(+)
net/mac80211/ht.c +3 -0
index 61ac7c4..9e7560b 100644
@@ -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,
Signature · 1 line
1.8.0
author maintainer Applied
#1 lore raw
Quoted 4 lines · Johannes Berg

From: Emmanuel Grumbach <[email protected]>

Bail out if no update is made to the SMPS state. This allows the driver to avoid duplicating the state.

Applied.

johannes