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

Commit d0ce9c85 authored by Chris Manton's avatar Chris Manton
Browse files

Move defs from anon namespace gd/hci/acl_manager/assembler.h

Bug: 162114100
Tag: #refactor
Test: gd/cert/run

Change-Id: I7a2f41bad607f2c5bf39121c14ae7168ff42d8e3
parent 77e0537f
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) {