OSDN Git Service

Add BT_HCI_UNKNOWN_MESSAGE_TYPE log event
authorPavlin Radoslavov <pavlin@google.com>
Wed, 14 Sep 2016 23:39:02 +0000 (16:39 -0700)
committergitbuildkicker <android-build@google.com>
Fri, 16 Sep 2016 23:24:56 +0000 (16:24 -0700)
commit9ef3ce8fb8b275fcd372ec673b4b496461e6b6a5
treec8f9ce90c68f7611aa409a9e1640263df5910517
parent9817b62f3c1f74b290c12c9d0dc124435cf6fb88
Add BT_HCI_UNKNOWN_MESSAGE_TYPE log event

If the received HCI type is unknown, then log an event and abort.
The most likely reason for that to happen is if the UART stream
is corrupted. We cannot recover from that, and there is not much
else we can do.

Also, fixed a bug in an HCI-related unit test that was exposed
by the above change.

Bug: 31432127
Change-Id: Ia888c485f177af4962268bf8f593b27fd7a4b080
(cherry picked from commit 27ec0c7824cf67b8a36bf5391734e6d2fc6207e2)
(cherry picked from commit e1c8ed17c7a35510f00997ca329687f73cd193d8)
EventLogTags.logtags
hci/src/hci_hal_h4.c
hci/test/hci_hal_h4_test.cpp