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

Commit 0186b393 authored by Hansong Zhang's avatar Hansong Zhang
Browse files

Don't fragment when ACL shim is enabled

Tag: #refactor
Bug: 176963486
Test: PAN
Change-Id: I3c731946e3184e619922a26da9148bfae1fe9ff7
parent f1a20b79
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1040,7 +1040,9 @@ static void l2c_link_send_to_lower_br_edr(tL2C_LCB* p_lcb, BT_HDR* p_buf) {
      controller_get_interface()->get_acl_packet_size_classic();
  const uint16_t link_xmit_quota = p_lcb->link_xmit_quota;
  const bool is_bdr_and_fits_in_buffer =
      (p_buf->len <= acl_packet_size_classic);
      bluetooth::shim::is_gd_acl_enabled()
          ? true
          : (p_buf->len <= acl_packet_size_classic);

  if (is_bdr_and_fits_in_buffer) {
    if (link_xmit_quota == 0) {