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

Commit 30b9c4a2 authored by Chris Manton's avatar Chris Manton
Browse files

stack::l2cap [13/19] L2CA_SetAclPriority

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

Change-Id: I9f6e8f9e21b18402747aee82530fa3fb51a96170
parent 0953ac96
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -1214,10 +1214,16 @@ void bta_av_stream_chg(tBTA_AV_SCB* p_scb, bool started) {


  if (started) {
  if (started) {
    /* Let L2CAP know this channel is processed with high priority */
    /* Let L2CAP know this channel is processed with high priority */
    L2CA_SetAclPriority(p_scb->PeerAddress(), L2CAP_PRIORITY_HIGH);
    if (!L2CA_SetAclPriority(p_scb->PeerAddress(), L2CAP_PRIORITY_HIGH)) {
      log::warn("Unable to set L2CAP acl high priority peer:{}",
                p_scb->PeerAddress());
    }
  } else {
  } else {
    /* Let L2CAP know this channel is processed with low priority */
    /* Let L2CAP know this channel is processed with low priority */
    L2CA_SetAclPriority(p_scb->PeerAddress(), L2CAP_PRIORITY_NORMAL);
    if (!L2CA_SetAclPriority(p_scb->PeerAddress(), L2CAP_PRIORITY_NORMAL)) {
      log::warn("Unable to set L2CAP acl normal priority peer:{}",
                p_scb->PeerAddress());
    }
  }
  }
}
}