]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mwifiex: return -EBUSY if scan request cannot be honored
authorBing Zhao <bzhao@marvell.com>
Sat, 6 Oct 2012 03:21:40 +0000 (20:21 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Oct 2012 19:06:02 +0000 (15:06 -0400)
commitc2476335313e618c0368ffbe73e05bba4d0f5f89
treee3f699424d9767e98ce9d2cb4605a59ad918c385
parent55fabefe3695241e6ccfa0cd4974f3fa497693dc
mwifiex: return -EBUSY if scan request cannot be honored

There are cases we cannot scan when request is received.
For example, during WPA group key negociation the scan request
will be blocked. We should return an error code to cfg80211
because cfg80211_scan_done will never be called.

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/scan.c