diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-10-14 19:02:43 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-10-14 19:04:08 +0300 |
commit | 4a733ef1bea705cdc69d936b95fedab4b47fbd40 (patch) | |
tree | 8e16628865b0f7a35b81615f7c9d4430bf309c5b /net/mac80211/cfg.c | |
parent | 61f6bba006d4e643fdff62c3d7fd4ea6ca4f468d (diff) | |
download | linux-4a733ef1bea705cdc69d936b95fedab4b47fbd40.tar.xz |
mac80211: remove PM-QoS listener
As this API has never really seen any use and most drivers don't
ever use the value derived from it, remove it.
Change the only driver using it (rt2x00) to simply use the DTIM
period instead of the "max sleep" time.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 63d03dad654c..276b57243298 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1428,7 +1428,7 @@ static int ieee80211_change_station(struct wiphy *wiphy, if (sdata->vif.type == NL80211_IFTYPE_STATION && params->sta_flags_mask & BIT(NL80211_STA_FLAG_AUTHORIZED)) { - ieee80211_recalc_ps(local, -1); + ieee80211_recalc_ps(local); ieee80211_recalc_ps_vif(sdata); } @@ -2463,7 +2463,7 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, if (ieee80211_hw_check(&local->hw, SUPPORTS_DYNAMIC_PS)) ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_PS); - ieee80211_recalc_ps(local, -1); + ieee80211_recalc_ps(local); ieee80211_recalc_ps_vif(sdata); return 0; |