mwifiex: minor cleanup and a fix in scan semaphore usage
authorAmitkumar Karwar <akarwar@marvell.com>
Sat, 20 Oct 2012 02:19:17 +0000 (19:19 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Oct 2012 19:20:33 +0000 (15:20 -0400)
commitb0e70c2fb67bc376c3114a709ce0852e71d37ecb
tree1cf166a22c78fb8e5e8ab8430d655a328ef262da
parentf162cac83ba474eb71ea2aa7788bd77f1692f4d2
mwifiex: minor cleanup and a fix in scan semaphore usage

mwifiex_request_scan() takes care of synchronous internal scan
performed by driver during association.
Currently the semaphore acquired for the scan is unnecessarily
released at the end of different paths. Also, failure paths
returning error code other than "-1" are not considered.

We will release it at the end of routine to fix above issues.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c
drivers/net/wireless/mwifiex/init.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/scan.c
drivers/net/wireless/mwifiex/sta_cmdresp.c