System/bluetooth/bludroid:Remove the 3 second delay after starting bluetoothd
Remove the 3 second delay, which is not required for bluetoothd,
We wait for 10 secs to get the adapter path in android_server_BluetoothEventLoop.cpp,
which will handle the bluetoothd delay.
original change by: Bheemsen Kulkarni <x0099674@ti.com>
Change-Id: I194610675fcca70c908baf206318281ecde78fab
diff --git a/bluedroid/bluetooth.c b/bluedroid/bluetooth.c
index b953082..ec029ef 100644
--- a/bluedroid/bluetooth.c
+++ b/bluedroid/bluetooth.c
@@ -36,7 +36,6 @@
#define HCI_DEV_ID 0
#endif
-#define HCID_START_DELAY_SEC 3
#define HCID_STOP_DELAY_USEC 500000
#define MIN(x,y) (((x)<(y))?(x):(y))
@@ -183,7 +182,6 @@
LOGE("Failed to start bluetoothd");
goto out;
}
- sleep(HCID_START_DELAY_SEC);
ret = 0;