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

Commit da29cb5a authored by Chenjie Luo's avatar Chenjie Luo
Browse files

Only initiate codec negotiation if feature is supported

Bug: 25634250
Change-Id: I97330c853f6cf90673b4ff28c72645f9d1c8ff9d
parent 0af08479
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -571,7 +571,8 @@ void bta_hf_client_slc_seq(BOOLEAN error)
        break;

    case BTA_HF_CLIENT_AT_BRSF:
        if (bta_hf_client_cb.scb.peer_features & BTA_HF_CLIENT_PEER_CODEC)
        if ((bta_hf_client_cb.scb.features & BTA_HF_CLIENT_FEAT_CODEC)
                && (bta_hf_client_cb.scb.peer_features & BTA_HF_CLIENT_PEER_CODEC))
        {
            bta_hf_client_send_at_bac();
            break;