ath9k: Allow user to change tx power when asked
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 22 Oct 2008 20:28:45 +0000 (13:28 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:00:54 +0000 (19:00 -0400)
commit5c020dc6a0f75de3cd75d9cca3b589abc1826fc5
tree3b70d0b8ad905871f669add6dda016737b4cfae0
parentf97e40078e44c1db96269286adc0b12dc8eae3c2
ath9k: Allow user to change tx power when asked

We were also changing tx power even when we were not asked to,
this enforces the change only when we are asked nicely. When
not asked we simply try to use the max power, we don't tx power
at all for rate control.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c
drivers/net/wireless/ath9k/xmit.c