OSDN Git Service

Increase delay after driver loading if FW loader is not used
authorDmitry Shmidt <dimitrysh@google.com>
Thu, 25 Feb 2010 20:34:42 +0000 (12:34 -0800)
committerDmitry Shmidt <dimitrysh@google.com>
Thu, 25 Feb 2010 20:34:42 +0000 (12:34 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
wifi/wifi.c

index 5f24dcd..3f8708d 100644 (file)
@@ -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 {