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

Commit 61801b9c authored by Chenjie Luo's avatar Chenjie Luo Committed by android-build-merger
Browse files

Only initiate codec negotiation if feature is supported

am: 28d4e76c

* commit '28d4e76c':
  Only initiate codec negotiation if feature is supported
parents 17ba43e2 28d4e76c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -589,7 +589,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;