linux/drivers/net/wireless
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
..
ath ath5k: Track current TX power separately from max TX power 2010-12-22 15:43:28 -05:00
b43 b43: rename TMS defines, drop useless condition from core reset 2010-12-13 15:23:29 -05:00
b43legacy drivers/net/wireless/b43legacy/main.c: Use printf extension %pV 2010-11-16 16:37:05 -05:00
hostap Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-10-24 13:41:39 -07:00
ipw2x00 libipw: fix proc entry removal 2010-11-08 16:32:38 -05:00
iwlwifi iwlwifi: Fix error: struct iwl_lq_sta has no member named dbg_fixed_rate 2010-12-16 09:47:02 -05:00
iwmc3200wifi cfg80211/nl80211: separate unicast/multicast default TX keys 2010-12-13 15:23:28 -05:00
libertas Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-12-15 16:33:28 -05:00
libertas_tf
orinoco Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-12-08 16:23:31 -05:00
p54 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2010-12-15 16:33:28 -05:00
prism54 Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2010-10-24 13:41:39 -07:00
rt2x00 rt2x00: Use pci_is_pcie() 2010-12-22 15:43:26 -05:00
rtl818x rtl818x: move rtl8180 and rtl8187 to separate subdirectories 2010-12-22 13:45:32 -05:00
rtlwifi rtlwifi: Use pci_pcie_cap() 2010-12-22 15:43:27 -05:00
wl12xx wl12xx: remove unnecessary import 2010-12-22 15:43:26 -05:00
wl1251 wl1251: remove unnecessary import 2010-12-22 15:43:26 -05:00
zd1211rw zd1211rw: Use const 2010-11-22 15:58:54 -05:00
adm8211.c
adm8211.h
airo_cs.c
airo.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
airo.h
at76c50x-usb.c WIRELESS: at76c50x, remove unneeded NULL check 2010-10-11 15:04:25 -04:00
at76c50x-usb.h
atmel_cs.c
atmel_pci.c
atmel.c atmel: Use static const 2010-11-22 15:58:46 -05:00
atmel.h
Kconfig rtl8192ce: Add new driver 2010-12-15 16:17:49 -05:00
mac80211_hwsim.c mac80211_hwsim: Incorporate txpower into rssi 2010-11-15 13:25:28 -05:00
Makefile rtl8192ce: Add new driver 2010-12-15 16:17:49 -05:00
mwl8k.c mwl8k: use const struct fw pointers throughout 2010-11-16 16:37:03 -05:00
ray_cs.c wireless: ray_cs: use '%pm' format option to print MAC 2010-12-02 15:17:00 -05:00
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211/nl80211: separate unicast/multicast default TX keys 2010-12-13 15:23:28 -05:00
wl3501_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2010-10-23 11:47:02 -07:00
wl3501.h
zd1201.c wireless: Remove unnecessary casts of usb_get_intfdata 2010-12-02 15:16:47 -05:00
zd1201.h