Bluetooth : Resetting bluetooth state in case of pronto
After BT process is killed interface does not get
ready and retunrs while enable resulting in not
getting called preload.We reset BT state if BT
state is ON.
CRs-fixed: 685387
Change-Id: I217a0b14496bee94a0b19a2a52128252bfcf1731
diff --git a/libbt-vendor/src/bt_vendor_qcom.c b/libbt-vendor/src/bt_vendor_qcom.c
index d123e82..699d223 100644
--- a/libbt-vendor/src/bt_vendor_qcom.c
+++ b/libbt-vendor/src/bt_vendor_qcom.c
@@ -586,6 +586,11 @@
switch(btSocType)
{
case BT_SOC_DEFAULT:
+ if (readTrpState())
+ {
+ ALOGI("bt-vendor : resetting BT status");
+ hw_config(BT_VND_PWR_OFF);
+ }
retval = hw_config(nState);
if(nState == BT_VND_PWR_ON
&& retval == 0