]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rt2x00: Block set_key() during suspend/shutdown
authorIvo van Doorn <ivdoorn@gmail.com>
Sat, 1 Nov 2008 23:37:25 +0000 (00:37 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Nov 2008 16:06:05 +0000 (11:06 -0500)
commit8058409c4fb8e38632207d572ed29943d2585520
treed83c0ebef6cb0d27bfa871be624617a3dbe58deb
parent9a95dba32735534bda59def40c747bf606fedf05
rt2x00: Block set_key() during suspend/shutdown

mac80211 will call set_key() when the device is
shutting down. When the device is unplugged the
keys will be lost automatically due to the power
loss. When the device is not plugged but the module
is only unloaded the keys can remain in the device
hardware, when the module is loaded the keys will
be cleaned up during initialization.

This should prevent the problem reported by Johannes Berg,
where unplugging the device while suspended resulted in
a NULL pointer error during set_key() which was
caused because of the CSR base address being freed.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00mac.c