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

Commit ce476bce authored by Lianchao Song's avatar Lianchao Song Committed by Chenjie Luo
Browse files

DO NOT MERGE ANYWHERE Do not update sco_state when no matching peer_addr is found



In the bta_hf_client_sco_conn_cback function, sco_state should not be set to
BTA_HF_CLIENT_SCO_SHUTDOWN_ST when no matched peer_addr found, so that it
can handle BTA_HF_CLIENT_SCO_OPEN_E event later.

Bug: 26416310
Change-Id: I4540230c792490f79e4cca24cb4b34a1c383422f
Signed-off-by: default avatarm00230717 <m00230717@notesmail.huawei.com>
parent 866c0816
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ static void bta_hf_client_sco_conn_cback(UINT16 sco_idx)
    /* no match found; disconnect sco, init sco variables */
    else
    {
        bta_hf_client_cb.scb.sco_state = BTA_HF_CLIENT_SCO_SHUTDOWN_ST;
        /* should not force the sco state to shutdown state here */
        BTM_RemoveSco(sco_idx);
    }
}