diff options
-rw-r--r-- | bta/hf_client/bta_hf_client_at.c | 13 |
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); } |