diff options
Diffstat (limited to 'net/mac80211/ht.c')
-rw-r--r-- | net/mac80211/ht.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index 9a8be8f69224..fab7b91923e0 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c | |||
@@ -479,10 +479,9 @@ void ieee80211_request_smps(struct ieee80211_vif *vif, | |||
479 | vif->type != NL80211_IFTYPE_AP)) | 479 | vif->type != NL80211_IFTYPE_AP)) |
480 | return; | 480 | return; |
481 | 481 | ||
482 | if (WARN_ON(smps_mode == IEEE80211_SMPS_OFF)) | ||
483 | smps_mode = IEEE80211_SMPS_AUTOMATIC; | ||
484 | |||
485 | if (vif->type == NL80211_IFTYPE_STATION) { | 482 | if (vif->type == NL80211_IFTYPE_STATION) { |
483 | if (WARN_ON(smps_mode == IEEE80211_SMPS_OFF)) | ||
484 | smps_mode = IEEE80211_SMPS_AUTOMATIC; | ||
486 | if (sdata->u.mgd.driver_smps_mode == smps_mode) | 485 | if (sdata->u.mgd.driver_smps_mode == smps_mode) |
487 | return; | 486 | return; |
488 | sdata->u.mgd.driver_smps_mode = smps_mode; | 487 | sdata->u.mgd.driver_smps_mode = smps_mode; |