Merge "Bluetooth: Check H4 HCI packet types" am: dcc6f25d05
am: 526b1dcb99
am: d11c986c40
Change-Id: I95c5c0e7eff6446e5c5c32aec1491d8d69858624
This commit is contained in:
commit
173441461f
1 changed files with 6 additions and 0 deletions
|
@ -82,6 +82,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_);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue