Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30f55dc1 authored by Luciano Coelho's avatar Luciano Coelho Committed by Johannes Berg
Browse files

mac80211: allow drivers to request SMPS off



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: default avatarLuciano Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent b80edbc1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;