summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2010-02-25 12:34:42 -0800
committerDmitry Shmidt <dimitrysh@google.com>2010-02-25 12:34:42 -0800
commited8487244b1c9f72fb5d22c7a18918ac34063cee (patch)
tree143f1ea7819449251313d677497ee04917cededf /wifi
parente6c221466fe4ec2940c672126999d28ce01a49f1 (diff)
downloadhardware_libhardware_legacy-ed8487244b1c9f72fb5d22c7a18918ac34063cee.zip
hardware_libhardware_legacy-ed8487244b1c9f72fb5d22c7a18918ac34063cee.tar.gz
hardware_libhardware_legacy-ed8487244b1c9f72fb5d22c7a18918ac34063cee.tar.bz2
Increase delay after driver loading if FW loader is not used
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wifi')
-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 {