wl1271: fix init loop timeout
authorLuciano Coelho <luciano.coelho@nokia.com>
Thu, 29 Oct 2009 11:20:04 +0000 (13:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 20:50:39 +0000 (16:50 -0400)
commite7d17cf4f7e1b8d06575b6db2397c99c151674b8
tree8c89b5de50ee9460c90d3ad619df4c003ba65ed3
parent62b517cb3e974624a2958ad0b603ebb59cd96e16
wl1271: fix init loop timeout

The check after the loop which checks whether the initialization timed-out
was wrong.  If the initialization would succeed exactly in the 20000th time
(the value set for INIT_LOOP), the driver would bail out and claim that
initialization failed.

Reported-by: Juha Leppanen <juha_motorsportcom@luukku.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Reviewed-by: Janne Ylalehto <janne.ylalehto@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/wl1271_boot.c