diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-power.c')
-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) | |||
308 | { | 308 | { |
309 | int ret = 0; | 309 | int ret = 0; |
310 | struct iwl_tt_mgmt *tt = &priv->thermal_throttle; | 310 | struct iwl_tt_mgmt *tt = &priv->thermal_throttle; |
311 | bool enabled = (priv->iw_mode == NL80211_IFTYPE_STATION) && | 311 | bool enabled = priv->hw->conf.flags & IEEE80211_CONF_PS; |
312 | (priv->hw->conf.flags & IEEE80211_CONF_PS); | ||
313 | bool update_chains; | 312 | bool update_chains; |
314 | struct iwl_powertable_cmd cmd; | 313 | struct iwl_powertable_cmd cmd; |
315 | int dtimper; | 314 | int dtimper; |