Home
last modified time | relevance | path

Searched refs:sdu_length (Results 1 – 1 of 1) sorted by relevance

/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_fcr.cc680 uint16_t sdu_length; in l2c_lcc_proc_pdu() local
695 if (p_buf->len < sizeof(sdu_length)) { in l2c_lcc_proc_pdu()
701 STREAM_TO_UINT16(sdu_length, p); in l2c_lcc_proc_pdu()
704 if (sdu_length > p_ccb->local_conn_cfg.mtu) { in l2c_lcc_proc_pdu()
706 sdu_length, p_ccb->local_conn_cfg.mtu); in l2c_lcc_proc_pdu()
713 p_buf->len -= sizeof(sdu_length); in l2c_lcc_proc_pdu()
714 p_buf->offset += sizeof(sdu_length); in l2c_lcc_proc_pdu()
716 if (sdu_length < p_buf->len) { in l2c_lcc_proc_pdu()
717 log::error("Invalid sdu_length: {}", sdu_length); in l2c_lcc_proc_pdu()
723 p_data = (BT_HDR*)osi_malloc(BT_HDR_SIZE + sdu_length); in l2c_lcc_proc_pdu()
[all …]