]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: skipping pending commands after unload
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 28 Feb 2014 03:35:16 +0000 (19:35 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Feb 2014 19:33:42 +0000 (14:33 -0500)
commit2ba2bb4f00ac22f6cd7acd3589e71d8b3872d20e
treebe3f23ebea21902ab0dcd5561761bc0afc8831ef
parent62af0344a8e8562c25b7ad7bb2d6cfc553f20d5f
mwifiex: skipping pending commands after unload

We skip downloading other commands after FUNC_SHUTDOWN is queued
during driver unload. Main thread should be woken up each time
after freeing skipped command so that FUNC_SHUTDOWN gets served
in case if there are other pending commands before FUNC_SHUTDOWN.
Also, call mwifiex_complete_cmd() only for synchronous commands.

Reported-by: Avery Pennarun <apenwarr@gmail.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Maithili Hinge <maithili@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c