linux/drivers/net/wireless
Larry Finger 4ad36d780c b43legacy: Fix rfkill radio LED
This fixes Bug #9414 for b43legacy. This patch is the equivalent of one
submitted earlier for b43.

Since addition of the rfkill callback, the LED associated with the off
switch on the radio has not worked for several reasons:

(1) Essential data in the rfkill structure were missing.
(2) The rfkill structure was initialized after the LED initialization.
(3) There was a minor memory leak if the radio LED structure was inited.

Once the above problems were fixed, additional difficulties were noted:

(4) The radio LED was in the wrong state at startup.
(5) The radio switch had to be manipulated twice for each state change.
(6) A circular mutex locking situation existed.
(7) If rfkill-input is built as a module, it is not automatically loaded.

This patch fixes all of the above and removes a couple of sparse warnings.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-01-28 15:07:25 -08:00
..
b43 b43: Fix for broken transmission 2008-01-28 15:05:59 -08:00
b43legacy b43legacy: Fix rfkill radio LED 2008-01-28 15:07:25 -08:00
bcm43xx bcm43xx: mark as obsolete and schedule for removal 2008-01-28 14:55:35 -08:00
hostap [netdrvr] irq handler minor cleanups in several drivers 2008-01-28 15:03:40 -08:00
iwlwifi iwlwifi: add missing comments 2008-01-28 15:05:57 -08:00
libertas libertas: use spin_is_locked() instead of spin_trylock() in lbs_interrupt() 2008-01-28 15:07:08 -08:00
prism54 wireless: fix '!x & y' typo's 2008-01-28 15:03:35 -08:00
rt2x00 rt2x00: correct "skb_buff" typo 2008-01-28 15:05:54 -08:00
zd1211rw zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
adm8211.c [MAC80211]: add "invalid" interface type 2007-10-10 16:54:15 -07:00
adm8211.h [PATCH] adm8211: Use revision from pci_dev 2007-10-10 16:53:09 -07:00
airo_cs.c
airo.c NULL noise in drivers/net 2008-01-28 15:07:12 -08:00
airo.h
airport.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
arlan-main.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
arlan-proc.c
arlan.h
atmel_cs.c
atmel_pci.c
atmel.c wireless: checkpatch cleanups 2008-01-28 15:04:04 -08:00
atmel.h
hermes_rid.h
hermes.c
hermes.h
i82586.h
i82593.h
ipw2100.c netdev: ARRAY_SIZE() cleanups 2008-01-28 15:03:37 -08:00
ipw2100.h Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2007-10-19 20:35:20 -07:00
ipw2200.c introduce WEXT scan capabilities 2008-01-28 14:58:25 -08:00
ipw2200.h [PATCH] ipw2200: batch non-user-requested scan result notifications 2007-10-10 16:55:06 -07:00
Kconfig Fix file references in documentation and Kconfig 2008-01-22 10:43:36 -08:00
Makefile iwlwifi: cleanup Kconfig and ifdefs to split 3945 and 4965 2008-01-28 15:03:25 -08:00
net2280.h [P54]: add mac80211-based driver for prism54 softmac hardware 2007-10-10 16:51:42 -07:00
netwave_cs.c drivers/net/wireless: Add missing "space" 2007-11-29 21:34:51 -05:00
orinoco_cs.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
orinoco_nortel.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
orinoco_pci.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
orinoco_pci.h
orinoco_plx.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
orinoco_tmd.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
orinoco.c orinoco: always use latest BSS info when caching scan results 2008-01-28 15:05:55 -08:00
orinoco.h orinoco: more reliable scan handling 2008-01-28 15:03:32 -08:00
p54.h [PATCH] mac80211: revamp interface and filter configuration 2007-10-10 16:52:57 -07:00
p54common.c wireless: fix '!x & y' typo's 2008-01-28 15:03:35 -08:00
p54common.h [P54]: add mac80211-based driver for prism54 softmac hardware 2007-10-10 16:51:42 -07:00
p54pci.c P54: use temporary variables to reduce size of generated code 2008-01-28 15:03:33 -08:00
p54pci.h [P54]: add mac80211-based driver for prism54 softmac hardware 2007-10-10 16:51:42 -07:00
p54usb.c drivers/net/wireless: Add missing "space" 2007-11-29 21:34:51 -05:00
p54usb.h [P54]: add mac80211-based driver for prism54 softmac hardware 2007-10-10 16:51:42 -07:00
ray_cs.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
ray_cs.h long vs. unsigned long - low-hanging fruits in drivers 2007-10-14 12:41:51 -07:00
rayctl.h
rtl818x.h [PATCH] mac80211: revamp interface and filter configuration 2007-10-10 16:52:57 -07:00
rtl8187_dev.c wireless: make drivers include the TSF RX flag where appropriate 2008-01-28 14:58:26 -08:00
rtl8187_rtl8225.c rtl8187: fix tx power reading 2008-01-28 15:05:46 -08:00
rtl8187_rtl8225.h
rtl8187.h [PATCH] mac80211: revamp interface and filter configuration 2007-10-10 16:52:57 -07:00
spectrum_cs.c [NET]: Nuke SET_MODULE_OWNER macro. 2007-10-10 16:51:13 -07:00
strip.c [TTY]: Use tty_mode_ioctl() in network drivers. 2007-11-07 04:14:24 -08:00
wavelan_cs.c wireless: checkpatch cleanups 2008-01-28 15:04:04 -08:00
wavelan_cs.h
wavelan_cs.p.h
wavelan.c netdev: ARRAY_SIZE() cleanups 2008-01-28 15:03:37 -08:00
wavelan.h
wavelan.p.h
wl3501_cs.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
wl3501.h
zd1201.c [PATCH] zd1201: avoid null ptr access of skb->dev 2007-10-18 15:21:47 -04:00
zd1201.h