libertas: reset wait loop count

Marcelo Tosatti mtosatti at redhat.com
Fri Nov 3 18:22:07 EST 2006


Commit:     a05943f5d04b77234f33c96e42d136cde78860b0
Parent:     09715e97a1cdd66a98acf020618cb7005464d0df
commit a05943f5d04b77234f33c96e42d136cde78860b0
Author:     Marcelo Tosatti <mtosatti at redhat.com>
AuthorDate: Fri Nov 3 14:02:03 2006 -0200
Commit:     Marcelo Tosatti <mtosatti at redhat.com>
CommitDate: Fri Nov 3 14:02:03 2006 -0200

    libertas: reset wait loop count
    
    The counter for the wait loop is not reinitialized once a set of 20 loops
    has failed and the device is reinitialized.
    
    This can result in not long enough wait time for the device to come up.
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
---
 drivers/net/wireless/libertas/if_usb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index 27818a9..2d3eaa8 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -1037,6 +1037,7 @@ #endif
 	}
 
 restart:
+	i = 0;
 	priv->adapter->fw_ready = 0;
 
 	cardp->TotalBytes = 0;


More information about the Commits-kernel mailing list