aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2011-10-10 02:21:57 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2011-10-10 12:33:13 +0300
commit93d5fa6d959a9d82da2cefce1eb9b4f6d1d7c5b6 (patch)
tree405cfdc7dc6bf0dff8cdd00a7308b0a4d9cac2ad
parentc53daddb35355bde16f7b090987e483cb0632aa1 (diff)
downloadbluez-hcidump-93d5fa6d959a9d82da2cefce1eb9b4f6d1d7c5b6.tar.gz
bluez-hcidump-93d5fa6d959a9d82da2cefce1eb9b4f6d1d7c5b6.tar.xz
bluez-hcidump-93d5fa6d959a9d82da2cefce1eb9b4f6d1d7c5b6.zip
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.
-rw-r--r--parser/hci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser/hci.c b/parser/hci.c
index 698a301..a0e3034 100644
--- a/parser/hci.c
+++ b/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",