From 78df2696c7ed07053078d47f1cbe25dc3df5372e Mon Sep 17 00:00:00 2001 From: Martin Xu Date: Mon, 10 Oct 2011 02:21:57 -0700 Subject: [PATCH] hcidump: Fix HCI event string lookup table According to Core_v4.0 LE Meta Event Event Code is 0x3E, While Physical Link Complete Event Code is 0x40 So add Unknown after LE Meta Event. --- tools/parser/hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/parser/hci.c b/tools/parser/hci.c index eb67cafa0..80ddf482d 100644 --- a/tools/parser/hci.c +++ b/tools/parser/hci.c @@ -44,7 +44,7 @@ static inline uint16_t get_manufacturer(void) return (manufacturer == DEFAULT_COMPID ? parser.defcompid : manufacturer); } -#define EVENT_NUM 76 +#define EVENT_NUM 77 static char *event_str[EVENT_NUM + 1] = { "Unknown", "Inquiry Complete", @@ -109,6 +109,7 @@ static char *event_str[EVENT_NUM + 1] = { "Keypress Notification", "Remote Host Supported Features Notification", "LE Meta Event", + "Unknown", "Physical Link Complete", "Channel Selected", "Disconnection Physical Link Complete", -- 2.47.3