mwifiex: skip pending commands after function shutdown
authorBing Zhao <bzhao@marvell.com>
Sat, 16 Mar 2013 01:47:06 +0000 (18:47 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 18 Mar 2013 19:20:38 +0000 (15:20 -0400)
commita3e240cacc93a06bff3313e28938e980d01a2160
treefa983d09aa09b295cd5aa2287829af1a442a1573
parent00d7ea11ff0783e24fe70778f3141270b561aaa1
mwifiex: skip pending commands after function shutdown

During rmmod mwifiex_sdio processing FUNC_SHUTDOWN command is
sent to firmware. Firmware expcets only FUNC_INIT once WLAN
function is shut down.

Any command pending in the command queue should be ignored and
freed.

Cc: <stable@vger.kernel.org> # 3.8
Tested-by: Daniel Drake <dsd@laptop.org>
Tested-by: Marco Cesarano <marco@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c