Bug:
159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: If90d75c969277137d356617dec9b8f5c02c5d3f3
p_ccb->fcrb.max_held_acks = p_cfg->fcr.tx_win_sz / 3;
/* Include FCS option only if peer can handle it */
- if (p_ccb->p_lcb->peer_ext_fea & L2CAP_EXTFEA_NO_CRC) {
- /* FCS check can be bypassed if peer also desires to bypass */
- if (p_cfg->fcs_present && p_cfg->fcs == L2CAP_CFG_FCS_BYPASS)
- p_ccb->bypass_fcs |= L2CAP_CFG_FCS_OUR;
- } else
+ if ((p_ccb->p_lcb->peer_ext_fea & L2CAP_EXTFEA_NO_CRC) == 0) {
p_cfg->fcs_present = false;
+ }
} else {
p_cfg->fcr.mode = L2CAP_FCR_BASIC_MODE;
}