]> git.baikalelectronics.ru Git - 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)
commitb83d08292e09bb81a33f777a2bfeee3032d46b3d
treee3f699424d9767e98ce9d2cb4605a59ad918c385
parent554fb93748d8abfba90af58b597b1f1f3b1d56a3
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