mwifiex: check driver status in connect and scan handlers
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 7 Jan 2015 11:57:39 +0000 (03:57 -0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 23 Jan 2015 17:03:15 +0000 (19:03 +0200)
commite00483f74682ea6aa7f3839a980c7cdb548de4d2
treefd57340f2e489025363c619ef2c6f44f28814033
parent2b5b8f19fbf3b8337599db33cdf1afa84c1dde8d
mwifiex: check driver status in connect and scan handlers

Ignore scan and connection requests from cfg80211 when driver
unload is in process or previous command has timed out due to
a firmware bug. This patch fixes corner case system crash
issues.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/scan.c