diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-08-21 16:34:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-28 14:40:36 -0400 |
commit | 02eec9c5a1d3e9a2bed5e6221970febef38fc080 (patch) | |
tree | e2909edf4a4d0d49b5200ff0a50ca638b7d486c1 | |
parent | aa065263ecb0b0df096ff4b02b2fb88060dd2d45 (diff) |
iwlwifi: set default tx power user limit to minimal
Set the tx_power_user_lmt to the lowest power level
this value will get overwritten by channel's max power avg
from eeprom
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index f1f6dabd8fbd..43781dc9adfd 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1671,7 +1671,10 @@ int iwl_init_drv(struct iwl_priv *priv) | |||
1671 | priv->qos_data.qos_cap.val = 0; | 1671 | priv->qos_data.qos_cap.val = 0; |
1672 | 1672 | ||
1673 | priv->rates_mask = IWL_RATES_MASK; | 1673 | priv->rates_mask = IWL_RATES_MASK; |
1674 | priv->tx_power_user_lmt = IWL_TX_POWER_TARGET_POWER_MAX; | 1674 | /* Set the tx_power_user_lmt to the lowest power level |
1675 | * this value will get overwritten by channel max power avg | ||
1676 | * from eeprom */ | ||
1677 | priv->tx_power_user_lmt = IWL_TX_POWER_TARGET_POWER_MIN; | ||
1675 | 1678 | ||
1676 | ret = iwl_init_channel_map(priv); | 1679 | ret = iwl_init_channel_map(priv); |
1677 | if (ret) { | 1680 | if (ret) { |