From: Johannes Berg Date: Wed, 13 Oct 2010 17:23:21 +0000 (+0200) Subject: mac80211: fix SMPS request X-Git-Tag: MMI-PSA29.97-13-9~21994^2~78^2^2~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4b55957eb695b43055b6badec026628b24fe80a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mac80211: fix SMPS request 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! Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index 4214bb6e12fc..75d679d75e63 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c @@ -291,6 +291,8 @@ void ieee80211_request_smps(struct ieee80211_vif *vif, 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); }