uint16_t credits = L2CAP_LE_CREDIT_DEFAULT;
};
-/* L2CAP channel configured field bitmap */
-#define L2CAP_CH_CFG_MASK_MTU 0x0001
-#define L2CAP_CH_CFG_MASK_QOS 0x0002
-#define L2CAP_CH_CFG_MASK_FLUSH_TO 0x0004
-#define L2CAP_CH_CFG_MASK_FCR 0x0008
-#define L2CAP_CH_CFG_MASK_FCS 0x0010
-
-typedef uint16_t tL2CAP_CH_CFG_BITS;
-
/*********************************
* Callback Functions Prototypes
*********************************/
/* Peer desires to bypass FCS check, and streaming or ERTM mode */
if (p_cfg->fcs_present) {
p_ccb->peer_cfg.fcs = p_cfg->fcs;
- p_ccb->peer_cfg_bits |= L2CAP_CH_CFG_MASK_FCS;
}
max_retrans_size = p_ccb->ertm_info.fcr_tx_buf_size - sizeof(BT_HDR) -
/* Everything ok, so save the peer's adjusted fcr options */
p_ccb->peer_cfg.fcr = p_cfg->fcr;
- if (p_cfg->fcr_present) p_ccb->peer_cfg_bits |= L2CAP_CH_CFG_MASK_FCR;
} else if (fcr_ok == L2CAP_PEER_CFG_UNACCEPTABLE) {
/* Allow peer only one retry for mode */
if (p_ccb->peer_cfg_already_rejected)
uint8_t flags;
tL2CAP_CFG_INFO our_cfg; /* Our saved configuration options */
- tL2CAP_CH_CFG_BITS peer_cfg_bits; /* Store what peer wants to configure */
tL2CAP_CFG_INFO peer_cfg; /* Peer's saved configuration options */
fixed_queue_t* xmit_hold_q; /* Transmit data hold queue */
if (p_lcb) l2cu_enqueue_ccb(p_ccb);
- /* clear what peer wants to configure */
- p_ccb->peer_cfg_bits = 0;
-
/* Put in default values for configuration */
memset(&p_ccb->our_cfg, 0, sizeof(tL2CAP_CFG_INFO));
memset(&p_ccb->peer_cfg, 0, sizeof(tL2CAP_CFG_INFO));
/* Save the accepted value in case of renegotiation */
p_ccb->peer_cfg.mtu = p_cfg->mtu;
p_ccb->peer_cfg.mtu_present = true;
- p_ccb->peer_cfg_bits |= L2CAP_CH_CFG_MASK_MTU;
} else /* Illegal MTU value */
{
p_cfg->mtu = L2CAP_MIN_MTU;
{
p_ccb->peer_cfg.flush_to_present = true;
p_ccb->peer_cfg.flush_to = p_cfg->flush_to;
- p_ccb->peer_cfg_bits |= L2CAP_CH_CFG_MASK_FLUSH_TO;
}
}
/* Reload flush_to from a previously accepted config request */
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 = SVC_TYPE_BEST_EFFORT;