diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-01-21 05:24:04 -0800 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-01-29 11:13:36 -0800 |
commit | 4d6959219bb71aa34383fc1a1a520820aee6292b (patch) | |
tree | 5fd7a3a05f42f45f55d475227fd41d6b29c15604 /drivers/net | |
parent | fac06108701a2a081a47d4dc6f03220aaab54486 (diff) | |
download | blackbird-obmc-linux-4d6959219bb71aa34383fc1a1a520820aee6292b.tar.gz blackbird-obmc-linux-4d6959219bb71aa34383fc1a1a520820aee6292b.zip |
iwlwifi: no need to test iw_mode in power saving
mac80211 will only enable powersaving for station mode.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index 9e3ca0641451..232dd1879baf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c @@ -308,8 +308,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force) { int ret = 0; struct iwl_tt_mgmt *tt = &priv->thermal_throttle; - bool enabled = (priv->iw_mode == NL80211_IFTYPE_STATION) && - (priv->hw->conf.flags & IEEE80211_CONF_PS); + bool enabled = priv->hw->conf.flags & IEEE80211_CONF_PS; bool update_chains; struct iwl_powertable_cmd cmd; int dtimper; |