mako: bluetooth: bring up with bluedroid stack
- remove some codes not to be used with bluedroid stack
- add a property to check initialization status of bluetooth
- remove the code to initialize hci_smd driver
Change-Id: I73aa66421ed42bf464f8901b1e0346a9c657c832
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/init.mako.bt.sh b/init.mako.bt.sh
index 1d932e1..0111434 100644
--- a/init.mako.bt.sh
+++ b/init.mako.bt.sh
@@ -32,6 +32,8 @@
#load bd addr
BDADDR=`/system/bin/bdAddrLoader -p`
+setprop bluetooth.status off
+
logi "BDADDR: $BDADDR"
case $POWER_CLASS in
@@ -56,11 +58,12 @@
case $? in
0) logi "Bluetooth QSoC firmware download succeeded, $BTS_DEVICE $BTS_TYPE $BTS_BAUD $BTS_ADDRESS";;
*) failed "Bluetooth QSoC firmware download failed" $exit_code_hci_qcomm_init;
+ setprop bluetooth.status off;
exit $exit_code_hci_qcomm_init;;
esac
-logi "start bluetooth smd transport"
+setprop bluetooth.status on
-echo 1 > /sys/module/hci_smd/parameters/hcismd_set
+logi "start bluetooth smd transport"
exit 0