]> bbs.cooldavid.org Git - net-next-2.6.git/commit
wl1271: Fix scan failure detection
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Tue, 26 Oct 2010 11:24:38 +0000 (13:24 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:25:19 +0000 (13:25 -0500)
commitb739a42c921dcb0ae92cc14032b7f75dcba88e3b
tree85cc1cf771a013f2e040c1edcb90b4fe315e3df7
parentfb2382c75b1292aff0ebc8e209b0cb9ba70bb2cf
wl1271: Fix scan failure detection

In scan_complete_work, because the mutex is released before accessing the
scan->failed flag, it is possible for unfounded hardware recovery rounds
to be executed.

Fix this.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/wl1271_main.c
drivers/net/wireless/wl12xx/wl1271_scan.c