Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bf2745d authored by Mallikarjuna GB's avatar Mallikarjuna GB Committed by Andre Eisenbach
Browse files

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
parent 664d6dab
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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);
    }