aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-eeprom.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-04-28 05:12:10 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-29 15:36:13 -0400
commit75d80cadf4ceb238e55487ff6d3f9a0706e1028d (patch)
tree0f29cf8217df99e4dd4ca44a1f7c4615f862de88 /drivers/net/wireless/iwlwifi/iwl-eeprom.c
parent44368796b87d321e6ea84295a23b2e8eb415d300 (diff)
iwlagn: fix tx power initialization
Since commit f844a709a7d8f8be61a571afc31dfaca9e779621 Author: Stanislaw Gruszka <sgruszka@redhat.com> Date: Fri Jan 28 16:47:44 2011 +0100 iwlwifi: do not set tx power when channel is changing we set device tx power during initialization to priv->tx_power_next, which itself is initialized to minimum power. That changed default behaviour of driver. Previously we initialized device to transmit at maximum available power by default. Patch change again to previous behaviour and cleanup tx power initialization. Fortunately this is not critical fix, as mac80211 layer setup tx power lately to 14dB, hence device does not operate at minimal transmit power all the time. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
index 402733638f50..1e1a2d8df1da 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
@@ -711,13 +711,6 @@ int iwl_init_channel_map(struct iwl_priv *priv)
711 flags & EEPROM_CHANNEL_RADAR)) 711 flags & EEPROM_CHANNEL_RADAR))
712 ? "" : "not "); 712 ? "" : "not ");
713 713
714 /* Set the tx_power_user_lmt to the highest power
715 * supported by any channel */
716 if (eeprom_ch_info[ch].max_power_avg >
717 priv->tx_power_user_lmt)
718 priv->tx_power_user_lmt =
719 eeprom_ch_info[ch].max_power_avg;
720
721 ch_info++; 714 ch_info++;
722 } 715 }
723 } 716 }