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

Commit 66d57570 authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by Johannes Berg
Browse files

mac80211: allow driver to be stateless wrt. SMSP requests



Bail out if no update is made to the SMPS state. This
allows the driver to avoid duplicating the state.

Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent b6a7bceb
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -406,6 +406,9 @@ void ieee80211_request_smps(struct ieee80211_vif *vif,
	if (WARN_ON(smps_mode == IEEE80211_SMPS_OFF))
	if (WARN_ON(smps_mode == IEEE80211_SMPS_OFF))
		smps_mode = IEEE80211_SMPS_AUTOMATIC;
		smps_mode = IEEE80211_SMPS_AUTOMATIC;


	if (sdata->u.mgd.driver_smps_mode == smps_mode)
		return;

	sdata->u.mgd.driver_smps_mode = smps_mode;
	sdata->u.mgd.driver_smps_mode = smps_mode;


	ieee80211_queue_work(&sdata->local->hw,
	ieee80211_queue_work(&sdata->local->hw,