UPSTREAM: mwifiex: cancel pending scan during disconnect

It is obeserved that sometimes scan operation will block the disconnect
during system suspend. It's ok to cancel ongoing scan in this case. It
reduces unnecessary system suspend delay.

BUG=chrome-os-partner:53816,chrome-os-partner:58499
TEST=With these four patches applied, long delay issue doesn't
reproduce during suspend_stress_test.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit dec277f781cec519d96151bb740963b2a49f5f5d)
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>

Change-Id: I976f8a4a6ec45103ba4618ef33a1473f4b4884ba
Reviewed-on: https://chromium-review.googlesource.com/427424
Commit-Ready: Shunqian Zheng <zhengsq@rock-chips.com>
Tested-by: Shunqian Zheng <zhengsq@rock-chips.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/430414
Commit-Queue: Shunqian Zheng <zhengsq@rock-chips.com>
1 file changed