CHROMIUM: mwifiex: cancel pending scan commands if scan is already aborted
authorBing Zhao <bzhao@marvell.com>
Sat, 13 Oct 2012 00:48:28 +0000 (17:48 -0700)
committerGerrit <chrome-bot@google.com>
Sat, 13 Oct 2012 21:52:09 +0000 (14:52 -0700)
commit63486c2a9631a16162ce535c599c0c10f450bf1c
treeee2e72e5cfd2475990555c155c6e9ba084a3bd04
parent53b56e77f86a2dd70ead4eb9dc26ed530618fa94
CHROMIUM: mwifiex: cancel pending scan commands if scan is already aborted

The scan could be aborted by cfg80211 core.c.
Driver should not send any pending scan commands to firmware.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Paul Stewart <pstew@chromium.org>
BUG=chrome-os-partner:15087
TEST=On Wi-Fi Network Settings, enable Wi-Fi and connect to AP,
then disable Wi-Fi. Repeat above test multiple time.
Turn on driver debug and verify the pending scan commands are
cancelled after scan is aborted by cfg80211.

Change-Id: I8d27266bbda150d34ac442149030c8cfd4e663ab
Reviewed-on: https://gerrit.chromium.org/gerrit/35500
Reviewed-by: Ryan Cairns <rtc@chromium.org>
Commit-Ready: Paul Stewart <pstew@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
drivers/net/wireless/mwifiex/scan.c