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

Commit 8153d26d authored by Chris Manton's avatar Chris Manton
Browse files

Move stack/include/bt_types::FLOW_SPEC => stack/l2c

Towards functional aggregation

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

Change-Id: Id5863a3ce8a55c2573346ce4f749d9434f2549e7
parent 6be91044
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -643,20 +643,6 @@ typedef uint8_t INQ_LAP[LAP_LEN]; /* IAC as passed to Inquiry (LAP) */
#define COF_LEN 12
typedef uint8_t COF[COF_LEN]; /* ciphering offset number */

typedef struct {
  uint8_t qos_flags;          /* TBD */
  uint8_t service_type;       /* see below */
  uint32_t token_rate;        /* bytes/second */
  uint32_t token_bucket_size; /* bytes */
  uint32_t peak_bandwidth;    /* bytes/second */
  uint32_t latency;           /* microseconds */
  uint32_t delay_variation;   /* microseconds */
} FLOW_SPEC;

/* Values for service_type */
#define SVC_TYPE_BEST_EFFORT 1
#define SVC_TYPE_GUARANTEED 2

#define BT_1SEC_TIMEOUT_MS (1 * 1000) /* 1 second */

#define BT_EIR_FLAGS_TYPE 0x01
+14 −0
Original line number Diff line number Diff line
@@ -124,6 +124,20 @@ constexpr tL2CAP_FCR_OPTS kDefaultErtmOptions = {
    1010   /* MPS segment size */
};

typedef struct {
  uint8_t qos_flags;          /* TBD */
  uint8_t service_type;       /* see below */
  uint32_t token_rate;        /* bytes/second */
  uint32_t token_bucket_size; /* bytes */
  uint32_t peak_bandwidth;    /* bytes/second */
  uint32_t latency;           /* microseconds */
  uint32_t delay_variation;   /* microseconds */
} FLOW_SPEC;

/* Values for service_type */
#define SVC_TYPE_BEST_EFFORT 1
#define SVC_TYPE_GUARANTEED 2

/* Define a structure to hold the configuration parameters. Since the
 * parameters are optional, for each parameter there is a boolean to
 * use to signify its presence or absence.