mac80211: fix SMPS request
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Oct 2010 17:23:21 +0000 (19:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 13 Oct 2010 19:45:23 +0000 (15:45 -0400)
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 <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ht.c

index 4214bb6e12fc501cf55749dda1574e3fcd4696eb..75d679d75e63e92143d55a47601a1dfc1377ba03 100644 (file)
@@ -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);
 }