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

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

SCO connection should happen after SLC.

This change makes sure that SCO audio
connection request is not processed until
HFP SLC connection is done.

Change-Id: Ia2fcad49882deaaf049ae190d90442e5ca7ad71b
parent d963e299
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -802,6 +802,10 @@ static bt_status_t connect_audio( bt_bdaddr_t *bd_addr )

    int idx = btif_hf_idx_by_bdaddr(bd_addr);

    /* Check if SLC is connected */
    if (btif_hf_check_if_slc_connected() != BT_STATUS_SUCCESS)
        return BT_STATUS_NOT_READY;

    if (is_connected(bd_addr) && (idx != BTIF_HF_INVALID_IDX))
    {
        BTA_AgAudioOpen(btif_hf_cb[idx].handle);