mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
Merge "Bluetooth: Check H4 HCI packet types"
am: dcc6f25d05
Change-Id: Ib379d5149e301cf613643141a550a33093428cf5
This commit is contained in:
@@ -81,6 +81,12 @@ void H4Protocol::OnDataReady(int fd) {
|
||||
}
|
||||
}
|
||||
hci_packet_type_ = static_cast<HciPacketType>(buffer[0]);
|
||||
if (hci_packet_type_ != HCI_PACKET_TYPE_ACL_DATA &&
|
||||
hci_packet_type_ != HCI_PACKET_TYPE_SCO_DATA &&
|
||||
hci_packet_type_ != HCI_PACKET_TYPE_EVENT) {
|
||||
LOG_ALWAYS_FATAL("%s: Unimplemented packet type %d", __func__,
|
||||
static_cast<int>(hci_packet_type_));
|
||||
}
|
||||
} else {
|
||||
hci_packetizer_.OnDataReady(fd, hci_packet_type_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user