summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2010-02-25 15:28:09 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-02-25 15:28:09 -0800
commitcabb0103bdcf68f3edcf597f5799741c2d10ee73 (patch)
tree0097129e07bf27ca8a85b2a0b30fa5a1da03aedd
parent195368626339aefc4732661d009e8de1aacc24d1 (diff)
parented8487244b1c9f72fb5d22c7a18918ac34063cee (diff)
downloadhardware_libhardware_legacy-cabb0103bdcf68f3edcf597f5799741c2d10ee73.zip
hardware_libhardware_legacy-cabb0103bdcf68f3edcf597f5799741c2d10ee73.tar.gz
hardware_libhardware_legacy-cabb0103bdcf68f3edcf597f5799741c2d10ee73.tar.bz2
Merge "Increase delay after driver loading if FW loader is not used"
-rw-r--r--wifi/wifi.c4
1 files changed, 3 insertions, 1 deletions
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 {