]> 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)
commita09d474be1213da864aaabf65b8088665a0232f1
tree1cf166a22c78fb8e5e8ab8430d655a328ef262da
parenteaa268d47ce8764828131be4c11fbfdd6c7de575
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