Skip to content

Commit

Permalink
mac80211: allow driver to be stateless wrt. SMSP requests
Browse files Browse the repository at this point in the history
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 <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Feb 12, 2013
1 parent b6a7bce commit 66d5757
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/mac80211/ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 66d5757

Please sign in to comment.