wl1271: Check interface state in op_* functions
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Tue, 26 Oct 2010 11:24:39 +0000 (13:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:25:20 +0000 (13:25 -0500)
commitf8d9802f66eda9ff14f7667f99a46b31e9a9e273
tree82be7b3bf873ec93749288749942fc17e0052140
parentb739a42c921dcb0ae92cc14032b7f75dcba88e3b
wl1271: Check interface state in op_* functions

Check the state of the interface on op_* function so we don't try to access
the hardware in when its off.

The mac80211 may call these in some corner cases related, for instance, to
the hardware recovery procedure. These accesses cause a kernel crash on at
least some SDIO devices, because the bus is not properly claimed in that
scenario.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/wl1271_main.c