Searched refs:l2cap_length (Results 1 – 2 of 2) sorted by relevance
/system/bt/hci/src/ |
D | packet_fragmenter.c | 131 uint16_t l2cap_length; in reassemble_and_dispatch() local 136 STREAM_TO_UINT16(l2cap_length, stream); in reassemble_and_dispatch() 159 uint16_t full_length = l2cap_length + L2CAP_HEADER_SIZE + HCI_ACL_PREAMBLE_SIZE; in reassemble_and_dispatch() 163 if (check_uint16_overflow(l2cap_length, (L2CAP_HEADER_SIZE + HCI_ACL_PREAMBLE_SIZE)) || in reassemble_and_dispatch() 165 …OG_ERROR(LOG_TAG, "%s L2CAP packet has invalid length (%d). Dropping it.", __func__, l2cap_length); in reassemble_and_dispatch() 172 …"%s found l2cap full length %d less than the hci length %d.", __func__, l2cap_length, packet->len); in reassemble_and_dispatch()
|
/system/bt/hci/test/ |
D | packet_fragmenter_test.cpp | 138 …uint16_t l2cap_length = data_length - 2; // l2cap length field, 2 for the pretend channel id borro… in manufacture_packet_and_then_reassemble() local 152 UINT16_TO_STREAM(packet_data, l2cap_length); in manufacture_packet_and_then_reassemble() 182 uint16_t l2cap_length; in expect_packet_reassembled() local 185 STREAM_TO_UINT16(l2cap_length, data); in expect_packet_reassembled() 189 EXPECT_EQ(expected_data_length - 2, l2cap_length); // -2 for the pretend channel id in expect_packet_reassembled()
|