mwifiex: abort scan while cancelling pending command
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 28 Feb 2014 03:35:15 +0000 (19:35 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Feb 2014 19:33:41 +0000 (14:33 -0500)
commit4af2bd49e6777d39db9bafc868860f0cfdd04652
tree1aba93358be2baa1881d597b63eef6252634aaf6
parent828cf2222f05a22e51cdde4fb959d256bf31613b
mwifiex: abort scan while cancelling pending command

mwifiex_cancel_pending_ioctl() and
mwifiex_cancel_all_pending_cmd() are called in command timeout
and driver unload paths respectively.
If scan operation is in progress, we should abort it smoothly.

Reported-by: Tim Shepard <shep@alum.mit.edu>
Signed-off-by: Amitkumar Karwar <akarwar@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