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