Lines Matching refs:sdu_length
827 uint16_t sdu_length; in l2c_lcc_proc_pdu() local
838 if (p_buf->len < sizeof(sdu_length)) { in l2c_lcc_proc_pdu()
846 STREAM_TO_UINT16(sdu_length, p); in l2c_lcc_proc_pdu()
849 if (sdu_length > p_ccb->local_conn_cfg.mtu) { in l2c_lcc_proc_pdu()
855 p_buf->len -= sizeof(sdu_length); in l2c_lcc_proc_pdu()
856 p_buf->offset += sizeof(sdu_length); in l2c_lcc_proc_pdu()
858 if (sdu_length < p_buf->len) { in l2c_lcc_proc_pdu()
859 L2CAP_TRACE_ERROR("%s: Invalid sdu_length: %d", __func__, sdu_length); in l2c_lcc_proc_pdu()
866 p_data = (BT_HDR*)osi_malloc(BT_HDR_SIZE + sdu_length); in l2c_lcc_proc_pdu()
874 p_ccb->ble_sdu_length = sdu_length; in l2c_lcc_proc_pdu()
875 L2CAP_TRACE_DEBUG("%s SDU Length = %d", __func__, sdu_length); in l2c_lcc_proc_pdu()