]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: Use correct value for min_pwr and cur_pwr
authorNick Kossifidis <mickflemm@gmail.com>
Sun, 5 Aug 2012 19:35:33 +0000 (22:35 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Aug 2012 19:26:55 +0000 (15:26 -0400)
commitc7c59e6e0c315a14a332552ef342989d605f4327
treeb2fad80498e5542de304395fd0ed86be55a41d85
parent00137588b78f696c593c6df48ea47fc1d6765cef
ath5k: Use correct value for min_pwr and cur_pwr

Make sure we don't store the table offsets for min and cur power levels,
store the 0.25dB values instead. This way we don't clamp the tx power level
to max (because now cur_pwr holds the 0.25dB value, not the table offset) after
re-using cur_pwr on reset.

Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/phy.c