]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwifiex: skip pending commands after function shutdown
authorBing Zhao <bzhao@marvell.com>
Sat, 16 Mar 2013 01:47:06 +0000 (18:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:50 +0000 (09:25 -0700)
commita35577b77d5bc0f532b91d2b1eaa8acadbed13ec
tree26f4537753399ae263ddbbb5751e7f7b5ad97834
parentd89ab3195a0e8dc8990d9f3c42e5f880bf6c56c9
mwifiex: skip pending commands after function shutdown

commit a3e240cacc93a06bff3313e28938e980d01a2160 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/cmdevt.c