projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a7bce
)
mac80211: allow driver to be stateless wrt. SMSP requests
author
Emmanuel Grumbach
<emmanuel.grumbach@intel.com>
Sun, 10 Feb 2013 13:55:20 +0000
(15:55 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 12 Feb 2013 09:10:28 +0000
(10:10 +0100)
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>
net/mac80211/ht.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/ht.c
b/net/mac80211/ht.c
index 61ac7c48ac0c48dfff325c5d11bdcf5ef549f907..9e7560becbbb39fa66567b03447fbc154100e2b6 100644
(file)
--- 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,