• Ivo van Doorn's avatar
    rt2x00: Block set_key() during suspend/shutdown · 8058409c
    Ivo van Doorn authored
    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: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    8058409c
rt2x00mac.c 18.8 KB