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

Commit 1415f2e2 authored by Chris Manton's avatar Chris Manton
Browse files

Disable the `freeze le l2cap randomly` feature

The gd ACL layer handles fragmentation and reassembly

Bug: 227282681
Tag: #refactor
Test: gd/cert/run
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Ignore-AOSP-First: Cherrypick

Original change:
https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2082823
(cherry picked from commit bc53c8e8)

Change-Id: I09cfefbc449f13fdbc7ffbdecefa20dbd1776975
Merged-In: I09cfefbc449f13fdbc7ffbdecefa20dbd1776975
parent ad9848b2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1100,12 +1100,10 @@ static void l2c_link_send_to_lower_br_edr(tL2C_LCB* p_lcb, BT_HDR* p_buf) {
}

static void l2c_link_send_to_lower_ble(tL2C_LCB* p_lcb, BT_HDR* p_buf) {
  const uint16_t acl_packet_size_ble =
      controller_get_interface()->get_acl_packet_size_ble();
  const uint16_t acl_data_size_ble =
      controller_get_interface()->get_acl_data_size_ble();
  const uint16_t link_xmit_quota = p_lcb->link_xmit_quota;
  const bool is_ble_and_fits_in_buffer = (p_buf->len <= acl_packet_size_ble);
  const bool is_ble_and_fits_in_buffer = true;

  if (is_ble_and_fits_in_buffer) {
    if (link_xmit_quota == 0) {