summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMallikarjuna GB <gbmalli@codeaurora.org>2014-11-05 15:18:50 +0530
committerAndre Eisenbach <eisenbach@google.com>2015-04-09 17:50:22 +0000
commitfd422a772fb3d28d462a2b8020ff4a2bdc5e954a (patch)
treecf4d916052785f29233cbfabae742d8b528bebda
parent0b47e0a35c16f5b7d77c30ec1c095ed92ff4fd74 (diff)
downloadandroid_system_bt-fd422a772fb3d28d462a2b8020ff4a2bdc5e954a.tar.gz
android_system_bt-fd422a772fb3d28d462a2b8020ff4a2bdc5e954a.tar.bz2
android_system_bt-fd422a772fb3d28d462a2b8020ff4a2bdc5e954a.zip
Update Service Availability.
- service availability is updated on CIND response during SLC set-up. - update current service availability on +CIEV response from remote device. Change-Id: I57643a6ac3aad5339d686cf941902a8bf88d99fb
-rw-r--r--bta/hf_client/bta_hf_client_at.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/bta/hf_client/bta_hf_client_at.c b/bta/hf_client/bta_hf_client_at.c
index 462b287df..13a7c9cb9 100644
--- a/bta/hf_client/bta_hf_client_at.c
+++ b/bta/hf_client/bta_hf_client_at.c
@@ -445,6 +445,19 @@ static void bta_hf_client_handle_ciev(UINT32 index, UINT32 value)
return;
}
+ /* update service availability on +ciev from AG. */
+ if (service_index == (index - 1))
+ {
+ if (value == 1)
+ {
+ service_availability = TRUE;
+ }
+ else
+ {
+ service_availability = FALSE;
+ }
+ }
+
/* tBTA_HF_CLIENT_IND_TYPE match index in bta_hf_client_indicators */
bta_hf_client_ind(realind, value);
}