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)
committerPavlin Radoslavov <pavlin@google.com>
Fri, 16 Sep 2016 21:46:23 +0000 (21:46 +0000)
commite1c8ed17c7a35510f00997ca329687f73cd193d8
tree56f9303dc7a891edc56fd928da98158c65bf5fdf
parent1e688824d969cab2c01130bdfd3283a2719c28e8
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)
EventLogTags.logtags
hci/src/hci_hal_h4.c
hci/test/hci_hal_h4_test.cpp