From dbad760278fba66129f19907f4b11233554f0a16 Mon Sep 17 00:00:00 2001 From: Kiran Kelageri Date: Thu, 10 Sep 2015 17:50:26 -0700 Subject: Bluetooth-wipower:Enable BT turn on sequence to be generic. Change BT on sequence to be generic irrespective of SOC programming, i.e. with and without wipower on soc being programmed. Change-Id: I69e3e400549eb8d849cd579e266a21451c66dc15 --- libbt-vendor/src/hw_rome.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libbt-vendor/src/hw_rome.c b/libbt-vendor/src/hw_rome.c index 1464819..3df11ba 100644 --- a/libbt-vendor/src/hw_rome.c +++ b/libbt-vendor/src/hw_rome.c @@ -252,9 +252,14 @@ int get_vs_hci_event(unsigned char *rsp) } break; case EDL_WIP_QUERY_CHARGING_STATUS_EVT: - /*TODO: rsp code 00 mean no charging - this is going to change in FW soon*/ - if (rsp[4] != EMBEDDED_MODE_CHECK) + /* Query charging command has below return values + 0 - in embedded mode not charging + 1 - in embedded mode and charging + 2 - hadofff completed and in normal mode + 3 - no wipower supported on mtp. so irrepective of charging + handoff command has to be sent if return values are 0 or 1. + These change include logic to enable generic BT turn on sequence.*/ + if (rsp[4] < EMBEDDED_MODE_CHECK) { ALOGI("%s: WiPower Charging in Embedded Mode!!!", __FUNCTION__); wipower_handoff_ready = rsp[4]; -- cgit v1.2.3