]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: ath9k_hw_set_txpowerlimit sets previous txpower
authorBill Jordan <bjordan@rajant.com>
Wed, 31 Aug 2011 21:51:00 +0000 (17:51 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Sep 2011 19:53:46 +0000 (15:53 -0400)
commit2464f0ec21959ca453895fce5d61c6463b0c1804
tree51b08d72dc1ebd63c7fff023572761333abbb31c
parent17918a9c2d2dbf08c540ff294be8dbaf2789e99e
ath9k: ath9k_hw_set_txpowerlimit sets previous txpower

In commit 8c55e2323cd4fe53f74a061238080a3ab7cb5842
(ath9k_hw: do not limit initial tx power to 20 dbm),
setting of txpower was broken.

This patch fixes it by initializing reg_pwr from the new
power limit, not the previous value.

Signed-off-by: Bill Jordan <bjordan@rajant.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c