mwifiex: reset scan_processing flag in failure cases
authorBing Zhao <bzhao@marvell.com>
Fri, 5 Oct 2012 01:00:22 +0000 (18:00 -0700)
committerGerrit <chrome-bot@google.com>
Fri, 5 Oct 2012 11:26:37 +0000 (04:26 -0700)
commit1ccba31da33a4ebf635d9d33078328b0d9af1f78
tree37ad0f3181ca89aa2e532d4d3e63c5137e9ca335
parent53a9a491e4ccf9d62027785b2d277d97cfb9abcc
mwifiex: reset scan_processing flag in failure cases

scan_processing flag should be reset when scan request is failed
due to some reasons Ex. memory allocation failure etc. Otherwise
further scan requests will be blocked.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
BUG=chrome-os-partner:14486
TEST=AP doing WPA and group rekeying every 600s;
DUT connects and is doing a ping with 2 second interval;
On DUT, run "while true; do iw mlan0 scan > /dev/null; done"

Change-Id: Ie0dcf5ac74cdec5c9ae3261180923a1405d5e2c7
Reviewed-on: https://gerrit.chromium.org/gerrit/34715
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
drivers/net/wireless/mwifiex/scan.c