android_kernel_xiaomi_sm8350/drivers/net/wireless/b43legacy
Stefano Brivio db9683fb19 b43legacy: rewrite and fix rfkill initialization
The rfkill subsystem doesn't like code like that
rfkill_allocate();
rfkill_register();
rfkill_unregister();
rfkill_register(); /* <- This will crash */

This sequence happens with
modprobe b43
ifconfig wlanX up
ifconfig wlanX down
ifconfig wlanX up

Fix this by always re-allocating the rfkill stuff before register.

The patch to b43 by Michael Buesch <mb@bu3sch.de> has been ported to
b43legacy.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-01-28 15:04:30 -08:00
..
b43legacy.h b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
debugfs.c
debugfs.h
dma.c
dma.h
ilt.c
ilt.h
Kconfig b43legacy: Use input-polldev for the rfkill switch 2008-01-28 15:03:27 -08:00
leds.c b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
leds.h
main.c b43legacy: rewrite and fix rfkill initialization 2008-01-28 15:04:30 -08:00
main.h
Makefile b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
phy.c
phy.h [B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices 2007-10-10 16:51:38 -07:00
pio.c
pio.h
radio.c b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
radio.h b43legacy: RF-kill support 2008-01-28 15:03:27 -08:00
rfkill.c b43legacy: rewrite and fix rfkill initialization 2008-01-28 15:04:30 -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: use the retry limits provided by mac80211 2008-01-28 15:04:28 -08:00
xmit.h