summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorSatish Kodishala <skodisha@codeaurora.org>2016-03-09 18:57:01 +0530
committerLinux Build Service Account <lnxbuild@localhost>2016-08-24 08:09:29 -0600
commit8f13dfa397f2740f796dcfd09812fdde0e284bd8 (patch)
tree6d824ada58faf9f741ccd0f849ab12f212bf4c2a /btif
parent04ab69425ed24ba1d1e2f71fe50cf80de7a2f517 (diff)
downloadandroid_system_bt-8f13dfa397f2740f796dcfd09812fdde0e284bd8.tar.gz
android_system_bt-8f13dfa397f2740f796dcfd09812fdde0e284bd8.tar.bz2
android_system_bt-8f13dfa397f2740f796dcfd09812fdde0e284bd8.zip
AG: Disable HSP profile durning BT turn off.
When BT Turns ON we are enabling HSP and HFP profile. When BT Turns OFF we are disabling only HFP profile. So,When BT Turns ON unable to connect HSP profile. So,Add Disable for HSP profile also once BT Turn OFF. CRs-Fixed: 987527 Change-Id: Ied8bef7eee8a20530ceedea636fcc1000ee7bb3a
Diffstat (limited to 'btif')
-rw-r--r--btif/src/btif_hf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index 2f1cfaa6e..98f2256c1 100644
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -1668,7 +1668,11 @@ static void cleanup( void )
if (bt_hf_callbacks)
{
+#if (defined(BTIF_HF_SERVICES) && (BTIF_HF_SERVICES & BTA_HFP_SERVICE_MASK))
btif_disable_service(BTA_HFP_SERVICE_ID);
+#else
+ btif_disable_service(BTA_HSP_SERVICE_ID);
+#endif
bt_hf_callbacks = NULL;
}
}