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

Commit f3511248 authored by Chris Manton's avatar Chris Manton
Browse files

stack::l2cap [14/19] L2CA_SetChnlFlushability

Bug: 339732512
Test: m .
Flag: EXEMPT, Logging Change

Change-Id: If7f861c6d34854299f751dfb4f21ea0751b39ffe
parent 30b9c4a2
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1219,7 +1219,10 @@ void bta_av_str_opened(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {


  /* Set the media channel as high priority */
  /* Set the media channel as high priority */
  L2CA_SetTxPriority(p_scb->l2c_cid, L2CAP_CHNL_PRIORITY_HIGH);
  L2CA_SetTxPriority(p_scb->l2c_cid, L2CAP_CHNL_PRIORITY_HIGH);
  L2CA_SetChnlFlushability(p_scb->l2c_cid, true);
  if (!L2CA_SetChnlFlushability(p_scb->l2c_cid, true)) {
    log::warn("Unable to set L2CAP flush peer:{} cid:{}", p_scb->PeerAddress(),
              p_scb->l2c_cid);
  }


  bta_sys_conn_open(BTA_ID_AV, p_scb->app_id, p_scb->PeerAddress());
  bta_sys_conn_open(BTA_ID_AV, p_scb->app_id, p_scb->PeerAddress());
  memset(&p_scb->q_info, 0, sizeof(tBTA_AV_Q_INFO));
  memset(&p_scb->q_info, 0, sizeof(tBTA_AV_Q_INFO));