android_kernel_motorola_sm6225/drivers/net/wireless/b43legacy
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
..
b43legacy.h b43legacy: reinit on too many PHY TX errors 2008-01-28 15:05:04 -08:00
debugfs.c b43legacy: properly fix a bogus gcc warning 2008-01-28 15:05:02 -08:00
debugfs.h
dma.c b43/b43legacy: fix left-over URLs and ifdefs 2007-11-29 21:34:51 -05:00
dma.h
ilt.c b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
ilt.h
Kconfig b43legacy: fix kconfig dependecies for rfkill and leds 2008-01-28 15:04:37 -08:00
leds.c b43legacy: Fix rfkill radio LED 2008-01-28 15:07:25 -08:00
leds.h b43legacy: LED triggers support 2008-01-28 15:03:26 -08:00
main.c b43legacy: Fix rfkill radio LED 2008-01-28 15:07:25 -08:00
main.h b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
Makefile b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
phy.c b43legacy: Convert to use of the new SPROM structure 2008-01-28 15:04:43 -08:00
phy.h b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
pio.c
pio.h
radio.c b43legacy: Convert to use of the new SPROM structure 2008-01-28 15:04:43 -08:00
radio.h b43/b43legacy: fix my copyright notices 2008-01-28 15:04:31 -08:00
rfkill.c b43legacy: Fix rfkill radio LED 2008-01-28 15:07:25 -08:00
rfkill.h b43legacy: rewrite and fix rfkill initialization 2008-01-28 15:04:30 -08:00
sysfs.c
sysfs.h
xmit.c b43legacy: Convert to use of the new SPROM structure 2008-01-28 15:04:43 -08:00
xmit.h