Files
linux/drivers
Bruno Randolf 51f00622e5 ath5k: Track current TX power separately from max TX power
Add a new variable to keep track of the currently configured tx power. Before
max_pwr was re-used for keeping the maximum allowed power as well as the
current configuration. Doing a min() on it allows you to lower the txpower, but
how would you be able to make it higher again?

This patch fixes that by adding a new variable ah_cur_pwr which is used instead
of txp_max_pwr to keep the current configuration. txp_max_pwr is used to check
if we are within the limits.

Another problem fixed by this patch is that it avoids setting a zero txpower
when things are initialized first and the current power is not yet set.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-12-22 15:43:28 -05:00
..
2010-09-28 23:30:38 -04:00
2010-10-29 00:29:51 +02:00
2010-10-29 04:16:28 -04:00
2010-10-29 00:29:44 +02:00
2010-10-28 20:31:50 +02:00
2010-10-30 08:31:35 -07:00
2010-12-22 15:43:26 -05:00
2010-10-29 04:16:28 -04:00