aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorNick Kossifidis <mickflemm@gmail.com>2012-08-05 15:35:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-08-10 15:26:56 -0400
commit493ca5ef4ec8a7e8396d6ab26f48de66bdf73dca (patch)
tree0fb379fe399b5489c71578dcb45efdb1dc8f18f3 /drivers/net
parent755051993bfcdf07acd84a7ffd08d463b85bfd69 (diff)
ath5k: Preserve tx power level requested from above on phy_init
By using cur_pwr on phy_init we re-use the power level previously set by the driver, not the one we got from above. Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 84a9aafd91a2..27ca993586d7 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -3802,8 +3802,8 @@ ath5k_hw_phy_init(struct ath5k_hw *ah, struct ieee80211_channel *channel,
3802 * RF buffer settings on 5211/5212+ so that we 3802 * RF buffer settings on 5211/5212+ so that we
3803 * properly set curve indices. 3803 * properly set curve indices.
3804 */ 3804 */
3805 ret = ath5k_hw_txpower(ah, channel, ah->ah_txpower.txp_cur_pwr ? 3805 ret = ath5k_hw_txpower(ah, channel, ah->power_level ?
3806 ah->ah_txpower.txp_cur_pwr / 2 : AR5K_TUNE_MAX_TXPOWER); 3806 ah->power_level * 2 : AR5K_TUNE_MAX_TXPOWER);
3807 if (ret) 3807 if (ret)
3808 return ret; 3808 return ret;
3809 3809