2011-10-10 09:21:57

by Xu, Martin

[permalink] [raw]
Subject: [PATCH] Add Unknow after LEMeta Event

According to Core_v4.0
LE Meta Event Event Code is 0x3E, While Physical Link Complete Event Code is 0x40
So add Unknow after LEMeta Event
---
parser/hci.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/parser/hci.c b/parser/hci.c
index 610177b..d36b54b 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",
--
1.7.2.2



2011-10-10 09:35:18

by Hedberg, Johan

[permalink] [raw]
Subject: Re: [PATCH] Add Unknow after LEMeta Event

Hi Martin,

On Mon, Oct 10, 2011, Martin Xu wrote:
> According to Core_v4.0
> LE Meta Event Event Code is 0x3E, While Physical Link Complete Event Code is 0x40
> So add Unknow after LEMeta Event
> ---
> parser/hci.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)

Thanks. Applied after I cleaned up your commit message a little.

Johan