]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75879bcd5991d58c2c83398c581aae683a11850a
tree82be7b3bf873ec93749288749942fc17e0052140
parentd1177a6c1e2f0a0afac391d31d6ecefabeb8da70
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