linux/drivers/net/wireless
Rami Rosen e223b6dc05 rt2x00: fix a wrong parameter for __test_and_clear_bit() in rt2x00rfkill_free().
When running modprobe rt73usb, and then rmmod rt73usb, and then
iwconfig, the wlan0 device does not disappear. When repeating this
process again, we get a kernel Oops errors and "BUG: unable to handle
kernel paging request..." message in the kernel log.

The reason for this is that there is an error in rt2x00rfkill_free(),
which is called in the process of removing the device
(rt2x00lib_remove_dev() in rt2x00dev.c).
rt2x00rfkill_free() clears the RFKILL_STATE_ALLOCATED bit , which is
bit number 1 () in rt2x00dev->flags instead of in
rt2x00dev->rfkill_state. As a result, when checking the
DEVICE_STATE_REGISTERED_HW bit (bit number 1 in rt2x00dev->flags) in
rt2x00lib_remove_hw() it is **unset**, and we wrongly **don't** call
ieee80211_unregister_hw().

This patch corrects this: the parameter for __test_and_clear_bit() in
rt2x00rfkill_free() should be &rt2x00dev->rfkill_state and not
&rt2x00dev->flags.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-01-16 17:08:24 -05:00
..
ath5k ath5k: fix return values from ath5k_tx 2009-01-12 14:24:57 -05:00
ath9k ath9k: Fix an operator typo in REG_DOMAIN_2GHZ_MASK 2009-01-16 17:08:23 -05:00
b43 b43: fix "‘gmode’ may be used uninitialized" warning 2009-01-13 10:25:45 -05:00
b43legacy b43legacy: fix "‘up_dev’ may be used uninitialized" warning 2009-01-13 10:25:45 -05:00
hostap hostap: select required crypto bits in Kconfig 2008-12-05 09:32:10 -05:00
ipw2x00 trivial: Fix misspelling of "firmware" in ipw2100.c 2009-01-06 11:28:08 +01:00
iwlwifi iwlwifi: remove CMD_WANT_SKB flag if send_cmd_sync failure 2009-01-16 17:08:23 -05:00
libertas libertas: Fix alignment issues in libertas core 2009-01-16 17:08:23 -05:00
libertas_tf libertas_tf: return NETDEV_TX_OK in TX op 2009-01-12 14:24:57 -05:00
orinoco orinoco_cs: add ID for ARtem Onair Comcard 11 2009-01-12 14:24:52 -05:00
p54 p54: fix oops caused by bad eeproms 2009-01-16 17:08:22 -05:00
prism54 drivers/net/wireless/prism54: fix sparse warnings: make symbols static 2008-12-26 00:15:03 -08:00
rt2x00 rt2x00: fix a wrong parameter for __test_and_clear_bit() in rt2x00rfkill_free(). 2009-01-16 17:08:24 -05:00
rtl818x rtl8187: Fix module so that rmmod/insmod does not error 2009-01-12 14:24:56 -05:00
zd1211rw fix similar typos to successfull 2009-01-08 08:31:15 -08:00
adm8211.c adm8211: remove SSID code 2008-11-10 15:11:56 -05:00
adm8211.h adm8211: remove SSID code 2008-11-10 15:11:56 -05:00
airo_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2008-10-13 14:12:40 -07:00
airo.c drivers/net/wireless: fix sparse warnings: make symbols static 2008-12-26 00:12:59 -08:00
airo.h
arlan-main.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00
arlan-proc.c
arlan.h
atmel_cs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2008-10-13 14:12:40 -07:00
atmel_pci.c
atmel.c trivial: Fix misspelling of "firmware" in atmel.c 2009-01-06 11:28:08 +01:00
atmel.h
i82586.h
i82593.h
Kconfig Wireless: Fix Kconfig fact error 2009-01-12 14:24:49 -05:00
mac80211_hwsim.c mac80211: Fix HT channel selection 2008-12-19 15:22:54 -05:00
Makefile ipw2x00: relocate ipw2100/ipw2200 to common directory 2008-11-21 11:08:17 -05:00
netwave_cs.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00
ray_cs.c drivers/net/wireless: fix sparse warnings: make symbols static 2008-12-26 00:12:59 -08:00
ray_cs.h
rayctl.h
rndis_wlan.c netdevice: safe convert to netdev_priv() #part-4 2008-11-12 23:39:10 -08:00
strip.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
wavelan_cs.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00
wavelan_cs.h
wavelan_cs.p.h
wavelan.c netdevice: safe convert to netdev_priv() #part-4 2008-11-12 23:39:10 -08:00
wavelan.h
wavelan.p.h net: Rationalise email address: Network Specific Parts 2008-10-13 19:01:08 -07:00
wl3501_cs.c drivers/net: Kill now superfluous ->last_rx stores. 2008-11-03 21:11:17 -08:00
wl3501.h don't use net/ieee80211.h 2008-11-10 15:11:56 -05:00
zd1201.c netdevice zd1201: Use after free 2008-12-18 22:27:38 -08:00
zd1201.h