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

Commit ab7ff119 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Modify service_type constants to not collide with constants in GD

Test: compilation
Change-Id: Ieb9540a3c5ca390a1e04d20ae378d1ab06b33707
parent 4d47be04
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -641,9 +641,9 @@ typedef struct {
} FLOW_SPEC;

/* Values for service_type */
#define NO_TRAFFIC 0
#define BEST_EFFORT 1
#define GUARANTEED 2
#define SVC_TYPE_NO_TRAFFIC 0
#define SVC_TYPE_BEST_EFFORT 1
#define SVC_TYPE_GUARANTEED 2

/* Service class of the CoD */
#define SERV_CLASS_NETWORKING (1 << 1)
+2 −2
Original line number Diff line number Diff line
@@ -1902,13 +1902,13 @@ uint8_t l2cu_process_peer_cfg_req(tL2C_CCB* p_ccb, tL2CAP_CFG_INFO* p_cfg) {
    /* Make sure service type is not a reserved value; otherwise let upper
       layer decide if acceptable
    */
    if (p_cfg->qos.service_type <= GUARANTEED) {
    if (p_cfg->qos.service_type <= SVC_TYPE_GUARANTEED) {
      p_ccb->peer_cfg.qos = p_cfg->qos;
      p_ccb->peer_cfg.qos_present = true;
      p_ccb->peer_cfg_bits |= L2CAP_CH_CFG_MASK_QOS;
    } else /* Illegal service type value */
    {
      p_cfg->qos.service_type = BEST_EFFORT;
      p_cfg->qos.service_type = SVC_TYPE_BEST_EFFORT;
      qos_type_ok = false;
    }
  }