Delay 200 ms after powering up the BT chip..
The reset pin requires this time to stabilize.
Patch contributed by:HYUNG SEOUNG YOO <hyungseoung.yoo@samsung.com>
Change-Id: I452c6188696e3598ba22b58a8f4144dad50b7e07
diff --git a/bluedroid/bluetooth.c b/bluedroid/bluetooth.c
index b953082..2384ae4 100644
--- a/bluedroid/bluetooth.c
+++ b/bluedroid/bluetooth.c
@@ -155,6 +155,9 @@
if (set_bluetooth_power(1) < 0) goto out;
+ // Wait for some time so that BT chip stabilizes
+ usleep(200000); // 200 ms delay
+
LOGI("Starting hciattach daemon");
if (property_set("ctl.start", "hciattach") < 0) {
LOGE("Failed to start hciattach");