linux/drivers/net/wireless/ath/ath5k
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
..
Kconfig ath5k: Add AHB bus support. 2010-12-02 15:17:51 -05:00
Makefile ath5k: Add AHB bus support. 2010-12-02 15:17:51 -05:00
ahb.c ath5k: Add AHB bus support. 2010-12-02 15:17:51 -05:00
ani.c ath5k: Reset cleanup and generic cleanup 2010-11-30 13:52:29 -05:00
ani.h ath5k: use the common cycle counter / listen time implementation 2010-10-11 15:04:20 -04:00
ath5k.h ath5k: Track current TX power separately from max TX power 2010-12-22 15:43:28 -05:00
attach.c ath5k: Use pci_is_pcie() 2010-12-22 15:43:26 -05:00
base.c ath5k: Set available antenna information for cfg80211 2010-12-20 14:49:47 -05:00
base.h ath5k: Fix survey 2010-12-16 15:22:32 -05:00
caps.c ath5k: Clean up turbo mode initvals/rfregs 2010-11-30 13:53:45 -05:00
debug.c ath: Convert ath_print to ath_dbg 2010-12-07 16:34:48 -05:00
debug.h ath5k: Debug DMA timeouts 2010-11-30 13:52:31 -05:00
desc.c ath5k: Reset cleanup and generic cleanup 2010-11-30 13:52:29 -05:00
desc.h ath5k: Optimize descriptor alignment 2010-11-09 16:13:26 -05:00
dma.c ath5k: Fix reporting of RX dma stop failure 2010-12-06 16:01:27 -05:00
eeprom.c ath5k: Use generic eeprom read from common ath_bus_opts struct. 2010-12-02 15:17:50 -05:00
eeprom.h ath5k: Use generic eeprom read from common ath_bus_opts struct. 2010-12-02 15:17:50 -05:00
gpio.c ath5k: remove ATH_TRACE macro 2010-06-02 16:13:24 -04:00
initvals.c ath5k: Add initial registers values for radio RF2317 chip. 2010-12-02 15:17:51 -05:00
led.c ath5k: Add AHB bus support. 2010-12-02 15:17:51 -05:00
pci.c ath5k: Fix modinfo does not list alias -> pci-id lines 2010-12-09 08:53:42 -05:00
pcu.c ath5k: Always set IFS intervals on reset 2010-11-30 13:53:22 -05:00
phy.c ath5k: Track current TX power separately from max TX power 2010-12-22 15:43:28 -05:00
qcu.c ath5k: Use capabilities information for the number of TX queues 2010-12-07 17:07:54 -05:00
reg.h ath5k: Add AHB bus support. 2010-12-02 15:17:51 -05:00
reset.c ath5k: Use pci_is_pcie() 2010-12-22 15:43:26 -05:00
rfbuffer.h ath5k: Set turbo bit on rf bank 2 2010-11-30 13:53:45 -05:00
rfgain.h
rfkill.c
sysfs.c ath5k: Check if pci pdev struct is initialized in common functions. 2010-12-02 15:17:50 -05:00