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

Commit 22f75a70 authored by Chris Manton's avatar Chris Manton Committed by Gerrit Code Review
Browse files

Merge "Properly init bta::av::bta_av_aact message structures 18/20"

parents ae1618fd c2142055
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -2742,12 +2742,14 @@ void bta_av_rcfg_discntd(tBTA_AV_SCB* p_scb, UNUSED_ATTR tBTA_AV_DATA* p_data) {
  p_scb->num_recfg++;
  if (p_scb->num_recfg > BTA_AV_RECONFIG_RETRY) {
    /* report failure */
    tBTA_AV_RECONFIG reconfig;
    reconfig.status = BTA_AV_FAIL_STREAM;
    reconfig.chnl = p_scb->chnl;
    reconfig.hndl = p_scb->hndl;
    tBTA_AV bta_av_data;
    bta_av_data.reconfig = reconfig;
    tBTA_AV bta_av_data = {
        .reconfig =
            {
                .chnl = p_scb->chnl,
                .hndl = p_scb->hndl,
                .status = BTA_AV_FAIL_STREAM,
            },
    };
    (*bta_av_cb.p_cback)(BTA_AV_RECONFIG_EVT, &bta_av_data);
    /* report close event & go to init state */
    bta_av_ssm_execute(p_scb, BTA_AV_STR_DISC_FAIL_EVT, NULL);