]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09813b6b49ba1dc8a398393a12b891dc137b928a
tree1cf166a22c78fb8e5e8ab8430d655a328ef262da
parent50371f66f8d79b723317cbb3a115c2fc049941a7
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