linux/drivers/net/wireless/rt2x00
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
..
Kconfig rt2x00: Implement HW encryption (rt2500usb) 2008-12-05 09:35:51 -05:00
Makefile rt2x00: Implement HW encryption 2008-08-22 16:29:58 -04:00
rt2x00.h rt2x00: Release rt2x00 2.2.3 2008-12-05 09:35:51 -05:00
rt2x00config.c rt2x00: Remove duplicate code 2008-12-05 09:35:50 -05:00
rt2x00crypto.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
rt2x00debug.c rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00debug.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2x00dev.c rt2x00: Fix TX short preamble detection 2009-01-12 14:24:50 -05:00
rt2x00dump.h
rt2x00firmware.c rt2x00: Reset LED assoc status after firmware update 2008-07-14 14:53:00 -04:00
rt2x00leds.c rt2x00: Fix radio LED type check 2009-01-12 14:24:49 -05:00
rt2x00leds.h rt2x00: Remove MAC80211_LEDS dependency 2008-04-01 17:14:09 -04:00
rt2x00lib.h rt2x00: Fix TX short preamble detection 2009-01-12 14:24:50 -05:00
rt2x00mac.c rt2x00: Correctly initialize AID during set_key() 2008-12-05 09:35:57 -05:00
rt2x00pci.c rt2x00: Cleanup indirect register access 2008-11-25 16:32:53 -05:00
rt2x00pci.h rt2x00: Cleanup indirect register access 2008-11-25 16:32:53 -05:00
rt2x00queue.c rt2x00: Fix TX short preamble detection 2009-01-12 14:24:50 -05:00
rt2x00queue.h rt2x00: Add RXDONE_CRYPTO_IV/ICV flags 2008-12-05 09:35:56 -05:00
rt2x00reg.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 2008-09-08 16:59:05 -07:00
rt2x00rfkill.c rt2x00: fix a wrong parameter for __test_and_clear_bit() in rt2x00rfkill_free(). 2009-01-16 17:08:24 -05:00
rt2x00usb.c rt2x00: Fix segementation fault 2009-01-12 14:24:53 -05:00
rt2x00usb.h rt2x00: Move rt73usb register access wrappers into rt2x00usb 2008-11-25 16:32:53 -05:00
rt61pci.c rt2x00: Add RXDONE_CRYPTO_IV/ICV flags 2008-12-05 09:35:56 -05:00
rt61pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt73usb.c rt2x00: add USB ID for the Linksys WUSB200. 2009-01-12 14:24:50 -05:00
rt73usb.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2400pci.c rt2x00: Cleanup indirect register access 2008-11-25 16:32:53 -05:00
rt2400pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500pci.c rt2x00: Cleanup indirect register access 2008-11-25 16:32:53 -05:00
rt2500pci.h rt2x00: Remove debugfs CSR access wrappers 2008-11-10 15:17:35 -05:00
rt2500usb.c rt2x00: Fix rt2500usb HW crypto: WEP 128 & AES 2009-01-12 14:24:57 -05:00
rt2500usb.h rt2x00: Implement HW encryption (rt2500usb) 2008-12-05 09:35:51 -05:00