diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-01-21 14:24:04 +0100 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-01-29 20:13:36 +0100 |
commit | 4d6959219bb71aa34383fc1a1a520820aee6292b (patch) | |
tree | 5fd7a3a05f42f45f55d475227fd41d6b29c15604 /drivers | |
parent | iwlwifi: update sensitivity calibration data for 1000 series (diff) | |
download | linux-4d6959219bb71aa34383fc1a1a520820aee6292b.tar.xz 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')
-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; |