diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 7330890fd05e..a589f7ea57f3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -2875,6 +2875,13 @@ static int iwl4965_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *co | |||
2875 | goto out; | 2875 | goto out; |
2876 | } | 2876 | } |
2877 | 2877 | ||
2878 | if (conf->flags & IEEE80211_CONF_PS) | ||
2879 | ret = iwl_power_set_user_mode(priv, IWL_POWER_INDEX_3); | ||
2880 | else | ||
2881 | ret = iwl_power_set_user_mode(priv, IWL_POWER_MODE_CAM); | ||
2882 | if (ret) | ||
2883 | IWL_DEBUG_MAC80211("Error setting power level\n"); | ||
2884 | |||
2878 | IWL_DEBUG_MAC80211("TX Power old=%d new=%d\n", | 2885 | IWL_DEBUG_MAC80211("TX Power old=%d new=%d\n", |
2879 | priv->tx_power_user_lmt, conf->power_level); | 2886 | priv->tx_power_user_lmt, conf->power_level); |
2880 | 2887 | ||