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)
commitd12c5c53ce4c8c65c694d1103673182ef5afdc65
treeb2fad80498e5542de304395fd0ed86be55a41d85
parent94f3457f4da43a44f17789f3e0bc8fb2ee9593ca
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