aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-power.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2011-04-01 19:29:53 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-04-08 11:01:46 -0400
commit23c0fcc66b4345ea97ae588c2e01f10c994652ba (patch)
tree31fea2ed224f57e673dd9c7a2e2e6a100f534e31 /drivers/net/wireless/iwlwifi/iwl-power.c
parent8ff84a2c99bc7f5f22d9d2b5365d821ce4f7a8f9 (diff)
iwlagn: all _agn devices support power save mode
Remove broken_power_save checking Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-power.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-power.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c
index c43c8e66de73..ae176d8da9e8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-power.c
+++ b/drivers/net/wireless/iwlwifi/iwl-power.c
@@ -354,9 +354,7 @@ static void iwl_power_build_cmd(struct iwl_priv *priv,
354 354
355 dtimper = priv->hw->conf.ps_dtim_period ?: 1; 355 dtimper = priv->hw->conf.ps_dtim_period ?: 1;
356 356
357 if (priv->cfg->base_params->broken_powersave) 357 if (priv->hw->conf.flags & IEEE80211_CONF_IDLE)
358 iwl_power_sleep_cam_cmd(priv, cmd);
359 else if (priv->hw->conf.flags & IEEE80211_CONF_IDLE)
360 iwl_static_sleep_cmd(priv, cmd, IWL_POWER_INDEX_5, 20); 358 iwl_static_sleep_cmd(priv, cmd, IWL_POWER_INDEX_5, 20);
361 else if (priv->cfg->ops->lib->tt_ops.lower_power_detection && 359 else if (priv->cfg->ops->lib->tt_ops.lower_power_detection &&
362 priv->cfg->ops->lib->tt_ops.tt_power_mode && 360 priv->cfg->ops->lib->tt_ops.tt_power_mode &&