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

Commit 152e3947 authored by Jack He's avatar Jack He Committed by Automerger Merge Worker
Browse files

Merge "[GD ACL] Make ACL packets non-flushable by default" am: 185f7a12 am: 6154a238

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1564674

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I310f0aa51ce19d0828f19a1e12d1a25ebc8fe1ea
parents 3547309e 6154a238
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -127,9 +127,8 @@ void RoundRobinScheduler::buffer_packet(std::map<uint16_t, acl_queue_handler>::i

  ConnectionType connection_type = acl_queue_handler->second.connection_type_;
  size_t mtu = connection_type == ConnectionType::CLASSIC ? hci_mtu_ : le_hci_mtu_;
  PacketBoundaryFlag packet_boundary_flag =
      (connection_type == ConnectionType::CLASSIC ? PacketBoundaryFlag::FIRST_AUTOMATICALLY_FLUSHABLE
                                                  : PacketBoundaryFlag::FIRST_NON_AUTOMATICALLY_FLUSHABLE);
  // TODO(b/178752129): Make A2DP and Hearing Aid audio packets flushable
  PacketBoundaryFlag packet_boundary_flag = PacketBoundaryFlag::FIRST_NON_AUTOMATICALLY_FLUSHABLE;
  int acl_priority = acl_queue_handler->second.high_priority_ ? 1 : 0;
  if (packet->size() <= mtu) {
    fragments_to_send_.push(