mac80211: allow drivers to request SMPS off
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 20 Feb 2014 14:41:51 +0000 (16:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Feb 2014 08:28:52 +0000 (09:28 +0100)
Previously we were warning and using automatic when a driver sent an
update request with SMPS off.  This patch makes it possible for
drivers to disable SMPS at runtime, for whatever reason.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ht.c

index afbe2b203c3ea2bb3bb8694107f34892c7f34adc..c150b68436d78ada5bfbb0825d128d8e89f916e3 100644 (file)
@@ -482,8 +482,6 @@ void ieee80211_request_smps(struct ieee80211_vif *vif,
                return;
 
        if (vif->type == NL80211_IFTYPE_STATION) {
-               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;