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

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

legacy: pan: Enum-ify stack/pan connection state

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

Change-Id: I6fa6f8e4d341a026d373e64bf9b0f286e2aee418
parent 68aa49d1
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -40,13 +40,16 @@

#define PAN_PROFILE_VERSION 0x0100 /* Version 1.00 */

typedef enum : uint8_t {
  PAN_STATE_IDLE = 0,
  PAN_STATE_CONN_START = 1,
  PAN_STATE_CONNECTED = 2,
} tPAN_STATE;

/* Define the PAN Connection Control Block
 */
typedef struct {
#define PAN_STATE_IDLE 0
#define PAN_STATE_CONN_START 1
#define PAN_STATE_CONNECTED 2
  uint8_t con_state;
  tPAN_STATE con_state;

#define PAN_FLAGS_CONN_COMPLETED 0x01
  uint8_t con_flags;