mwifiex: fix scan_block flag handling
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 29 Jun 2016 12:02:40 +0000 (17:32 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 8 Jul 2016 13:44:03 +0000 (16:44 +0300)
commitb74d6e740be36d6d0c05f3386520fb44bae886b3
tree64c654c21f4e157a0e29f5d4cf149d79f9aa038e
parent8a1902374fa0ce51ff8421111c2cf6cdc67dfce7
mwifiex: fix scan_block flag handling

scan_block flag is used to block scan operation when 4 way handshake
is in progress. Sometimes it doesn't get cleared due to incomplete
association. An example is assoc request/response is done, but add key
operation get canceled in some corner cases. As a result, further
association/scan operations are blocked.

This patch fixes the problem by clearing scan_block flag.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cfg80211.c