OSDN Git Service

Don't fragment when ACL shim is enabled
authorHansong Zhang <hsz@google.com>
Wed, 3 Feb 2021 19:50:29 +0000 (11:50 -0800)
committerHansong Zhang <hsz@google.com>
Wed, 3 Feb 2021 22:15:20 +0000 (22:15 +0000)
Tag: #refactor
Bug: 176963486
Test: PAN
Change-Id: I3c731946e3184e619922a26da9148bfae1fe9ff7

stack/l2cap/l2c_link.cc

index b860622..9555a71 100644 (file)
@@ -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) {