diff options
author | Nick Kossifidis <mickflemm@gmail.com> | 2012-08-05 22:35:36 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-08-10 15:26:57 -0400 |
commit | 987af54fa93b1c01eb3a85229bc93dfe77e6d2e1 (patch) | |
tree | 4ec197947f716e51234885fca69ab87d43c9f018 /drivers/net/wireless/ath/ath5k/mac80211-ops.c | |
parent | 493ca5ef4ec8a7e8396d6ab26f48de66bdf73dca (diff) | |
download | linux-stable-987af54fa93b1c01eb3a85229bc93dfe77e6d2e1.tar.gz linux-stable-987af54fa93b1c01eb3a85229bc93dfe77e6d2e1.tar.bz2 linux-stable-987af54fa93b1c01eb3a85229bc93dfe77e6d2e1.zip |
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.c | 4 |
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) } if ((changed & IEEE80211_CONF_CHANGE_POWER) && - (ah->power_level != conf->power_level)) { - ah->power_level = conf->power_level; + (ah->ah_txpower.txp_requested != conf->power_level)) { + ah->ah_txpower.txp_requested = conf->power_level; /* Half dB steps */ ath5k_hw_set_txpower_limit(ah, (conf->power_level * 2)); |