aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/mac80211-ops.c
diff options
context:
space:
mode:
authorNick Kossifidis <mickflemm@gmail.com>2012-08-05 15:35:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-08-10 15:26:57 -0400
commit987af54fa93b1c01eb3a85229bc93dfe77e6d2e1 (patch)
tree4ec197947f716e51234885fca69ab87d43c9f018 /drivers/net/wireless/ath/ath5k/mac80211-ops.c
parent493ca5ef4ec8a7e8396d6ab26f48de66bdf73dca (diff)
ath5k: Put power_level where it belongs and rename it
Put power_level to ah_txpower struct with the rest tx power infos and also rename it to txp_requested to make more sense. v2 make sure we don't memset it to zero on reset Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/mac80211-ops.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/mac80211-ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index 260e7dc7f751..92ee3a0a5192 100644
--- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
+++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
@@ -207,8 +207,8 @@ ath5k_config(struct ieee80211_hw *hw, u32 changed)
207 } 207 }
208 208
209 if ((changed & IEEE80211_CONF_CHANGE_POWER) && 209 if ((changed & IEEE80211_CONF_CHANGE_POWER) &&
210 (ah->power_level != conf->power_level)) { 210 (ah->ah_txpower.txp_requested != conf->power_level)) {
211 ah->power_level = conf->power_level; 211 ah->ah_txpower.txp_requested = conf->power_level;
212 212
213 /* Half dB steps */ 213 /* Half dB steps */
214 ath5k_hw_set_txpower_limit(ah, (conf->power_level * 2)); 214 ath5k_hw_set_txpower_limit(ah, (conf->power_level * 2));