diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2009-10-29 07:20:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-30 16:50:39 -0400 |
commit | e7d17cf4f7e1b8d06575b6db2397c99c151674b8 (patch) | |
tree | 8c89b5de50ee9460c90d3ad619df4c003ba65ed3 /drivers/net/wireless/wl12xx | |
parent | 62b517cb3e974624a2958ad0b603ebb59cd96e16 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_boot.c b/drivers/net/wireless/wl12xx/wl1271_boot.c index ba4a2b4f0f56..8678bea05ed5 100644 --- a/drivers/net/wireless/wl12xx/wl1271_boot.c +++ b/drivers/net/wireless/wl12xx/wl1271_boot.c | |||
@@ -380,7 +380,7 @@ static int wl1271_boot_run_firmware(struct wl1271 *wl) | |||
380 | } | 380 | } |
381 | } | 381 | } |
382 | 382 | ||
383 | if (loop >= INIT_LOOP) { | 383 | if (loop > INIT_LOOP) { |
384 | wl1271_error("timeout waiting for the hardware to " | 384 | wl1271_error("timeout waiting for the hardware to " |
385 | "complete initialization"); | 385 | "complete initialization"); |
386 | return -EIO; | 386 | return -EIO; |