From ed8487244b1c9f72fb5d22c7a18918ac34063cee Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Thu, 25 Feb 2010 12:34:42 -0800 Subject: Increase delay after driver loading if FW loader is not used Signed-off-by: Dmitry Shmidt --- wifi/wifi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wifi/wifi.c b/wifi/wifi.c index 5f24dcd..3f8708d 100644 --- a/wifi/wifi.c +++ b/wifi/wifi.c @@ -62,6 +62,8 @@ static char iface[PROPERTY_VALUE_MAX]; #endif #define WIFI_TEST_INTERFACE "sta" +#define WIFI_DRIVER_LOADER_DELAY 1000000 + static const char IFACE_DIR[] = "/data/system/wpa_supplicant"; static const char DRIVER_MODULE_NAME[] = WIFI_DRIVER_MODULE_NAME; static const char DRIVER_MODULE_TAG[] = WIFI_DRIVER_MODULE_NAME " "; @@ -177,7 +179,7 @@ int wifi_load_driver() return -1; if (strcmp(FIRMWARE_LOADER,"") == 0) { - usleep(500000); + usleep(WIFI_DRIVER_LOADER_DELAY); property_set(DRIVER_PROP_NAME, "ok"); } else { -- cgit v1.1