From: Emmanuel Grumbach Date: Sun, 10 Feb 2013 13:55:20 +0000 (+0200) Subject: mac80211: allow driver to be stateless wrt. SMSP requests X-Git-Tag: submit/tizen_common/20140905.094502~3339^2~28^2^2~26^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66d575705154525c33ab99b5f9ac2d246c348db6;p=sdk%2Femulator%2Femulator-kernel.git 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: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index 61ac7c4..9e7560b 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c @@ -406,6 +406,9 @@ void ieee80211_request_smps(struct ieee80211_vif *vif, 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; ieee80211_queue_work(&sdata->local->hw,