]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_common: always update value in ath9k_cmn_update_txpow
authorFelix Fietkau <nbd@openwrt.org>
Wed, 22 Oct 2014 16:17:35 +0000 (18:17 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Oct 2014 18:02:07 +0000 (14:02 -0400)
commit306b9248ebde82c0a93c23b52d86740b6a1f5cd0
tree999871ba4b0ec97f99fd6fb482409181cd55b617
parent1b324b0ba5de27bc29cc75dd4a85943a36293e35
ath9k_common: always update value in ath9k_cmn_update_txpow

In some cases the limit may be the same as reg->power_limit, but the
actual value that the hardware uses is not up to date. In that case, a
wrong value for current tx power is tracked internally.
Fix this by unconditionally updating it.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common.c