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

Commit 7321894c authored by Chris Manton's avatar Chris Manton
Browse files

Properly init bta::av::bta_av_aact message structures 4/20

Bug: 261213459
Test: gd/cert/run
Tag: #refactor
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I3b4bb618cdd7666e061784e906c3eac2910c5f76
parent 791d4984
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -1218,12 +1218,15 @@ void bta_av_str_opened(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {
     * the connection will be rejected.
     */
    /* check if other audio channel is started. If yes, start */
    tBTA_AV_OPEN open;
    open.bd_addr = p_scb->PeerAddress();
    open.chnl = p_scb->chnl;
    open.hndl = p_scb->hndl;
    open.status = BTA_AV_SUCCESS;
    open.edr = 0;
    tBTA_AV_OPEN open = {
        .chnl = p_scb->chnl,
        .hndl = p_scb->hndl,
        .bd_addr = p_scb->PeerAddress(),
        .status = BTA_AV_SUCCESS,
        .starting = false,
        .edr = 0,
        .sep = AVDT_TSEP_INVALID,
    };
    p = BTM_ReadRemoteFeatures(p_scb->PeerAddress());
    if (p != NULL) {
      if (HCI_EDR_ACL_2MPS_SUPPORTED(p)) open.edr |= BTA_AV_EDR_2MBPS;