]> err.no Git - linux-2.6/commit
b43legacy: rewrite and fix rfkill initialization
authorStefano Brivio <stefano.brivio@polimi.it>
Tue, 6 Nov 2007 21:48:45 +0000 (22:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:04:30 +0000 (15:04 -0800)
commitdb9683fb19a0f0da1cb4c296ffe1a8db03333cbc
tree86f2c14df0e7cce871d52df687c3b59ccaab1673
parent33a3dc9328ce3a89d3490a47197851f5dac4b6b5
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>
drivers/net/wireless/b43legacy/main.c
drivers/net/wireless/b43legacy/rfkill.c
drivers/net/wireless/b43legacy/rfkill.h