Lines Matching defs:fcs
425 UINT16 fcs;
467 /* Compute the FCS and add to the end of the buffer if not bypassed */
470 /* length field in l2cap header has to include FCS length */
474 /* Calculate the FCS */
475 fcs = l2c_fcr_tx_get_fcs(p_buf);
477 /* Point to the end of the buffer and put the FCS there */
480 UINT16_TO_STREAM (p, fcs);
525 UINT16 fcs;
566 /* Compute the FCS and add to the end of the buffer if not bypassed */
569 fcs = l2c_fcr_tx_get_fcs (p_buf);
571 UINT16_TO_STREAM (p, fcs);
574 else /* rewrite the length without FCS length */
641 UINT16 fcs;
715 /* Verify FCS if using */
720 /* Extract and drop the FCS from the packet */
721 STREAM_TO_UINT16 (fcs, p);
724 if (l2c_fcr_rx_get_fcs(p_buf) != fcs)
726 L2CAP_TRACE_WARNING1 ("Rx L2CAP PDU: CID: 0x%04x BAD FCS", p_ccb->local_cid);
1302 UINT16 fcs;
1306 /* Verify FCS if using */
1311 /* Extract and drop the FCS from the packet */
1312 STREAM_TO_UINT16 (fcs, p);
1315 if (l2c_fcr_rx_get_fcs(p_buf) != fcs)
1317 L2CAP_TRACE_WARNING1 ("Rx L2CAP PDU: CID: 0x%04x BAD FCS", p_ccb->local_cid);
1640 /* Update Rx Seq and FCS if we acked some packets while this one was queued */
1731 /* Note: if FCS has to be included then the length is recalculated later */
1766 /* We will not save the FCS in case we reconfigure and change options */
1781 /* We will not save the FCS in case we reconfigure and change options */
1900 p_cfg->fcs_present = FALSE; /* Illegal to use FCS option in basic mode */
1951 p_cfg->fcs_present = FALSE; /* Illegal to use FCS option in basic mode */
2221 /* Peer desires to bypass FCS check, and streaming or ERTM mode */
2224 p_ccb->peer_cfg.fcs = p_cfg->fcs;
2226 if( p_cfg->fcs == L2CAP_CFG_FCS_BYPASS)
2294 ** FALSE if fcs corrupted or no corruption
2309 /* Prepare bad FCS */
2343 /* Corrupt the FCS check */
2382 /* Lastly, just drop packet if FCS is not being used or if Tx */