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

Commit 45f5b753 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Move defs from anon namespace gd/hci/acl_manager/assembler.h" am: 8667a245

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

Change-Id: I96348f8dbc6d488c82db5ff22c38137fabcc07ff
parents 57254653 8667a245
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@ namespace bluetooth {
namespace hci {
namespace acl_manager {

constexpr size_t kMaxQueuedPacketsPerConnection = 10;
constexpr size_t kL2capBasicFrameHeaderSize = 4;

namespace {
class PacketViewForRecombination : public packet::PacketView<kLittleEndian> {
 public:
@@ -29,9 +32,6 @@ class PacketViewForRecombination : public packet::PacketView<kLittleEndian> {
  }
};

constexpr size_t kMaxQueuedPacketsPerConnection = 10;
constexpr int kL2capBasicFrameHeaderSize = 4;

// Per spec 5.1 Vol 2 Part B 5.3, ACL link shall carry L2CAP data. Therefore, an ACL packet shall contain L2CAP PDU.
// This function returns the PDU size of the L2CAP data if it's a starting packet. Returns 0 if it's invalid.
uint16_t GetL2capPduSize(AclView packet) {