Skip to contentSkip to conversation

mac80211: fix SMPS request

PATCH New Johannes Berg 1 participant 1 message Oct 13, 2010 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: fix SMPS request

From: Johannes Berg <[email protected]>

It looks like I submitted a different patch than I tested, because clearly the code in mac80211 is missing actually propagating the requested SMPS mode. Fix that!

---
 net/mac80211/ht.c |    2 ++
 1 file changed, 2 insertions(+)
net/mac80211/ht.c +2 -0
@@ -291,6 +291,8 @@ void ieee80211_request_smps(struct ieee8
 	if (WARN_ON(smps_mode == IEEE80211_SMPS_OFF))
 		smps_mode = IEEE80211_SMPS_AUTOMATIC;
 
+	sdata->u.mgd.driver_smps_mode = smps_mode;
+
 	ieee80211_queue_work(&sdata->local->hw,
 			     &sdata->u.mgd.request_smps_work);
 }