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

Commit 24c5aa0a authored by Chris Manton's avatar Chris Manton
Browse files

enum-ify fixed_cid stack/include/l2cdefs::L2CAP_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: If792e68c92adb0431526942ac4f9274b1d1db45f
parent 12064148
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -174,14 +174,16 @@ inline std::string l2cap_le_result_code_text(

/* L2CAP Predefined CIDs
*/
#define L2CAP_SIGNALLING_CID 1
#define L2CAP_CONNECTIONLESS_CID 2
#define L2CAP_AMP_CID 3
#define L2CAP_ATT_CID 4
#define L2CAP_BLE_SIGNALLING_CID 5
#define L2CAP_SMP_CID 6
#define L2CAP_SMP_BR_CID 7
#define L2CAP_BASE_APPL_CID 0x0040
enum : uint16_t {
  L2CAP_SIGNALLING_CID = 1,
  L2CAP_CONNECTIONLESS_CID = 2,
  L2CAP_AMP_CID = 3,
  L2CAP_ATT_CID = 4,
  L2CAP_BLE_SIGNALLING_CID = 5,
  L2CAP_SMP_CID = 6,
  L2CAP_SMP_BR_CID = 7,
  L2CAP_BASE_APPL_CID = 0x0040,
};

/* Fixed Channels mask bits */