From c0a3a46f52720ac74672f02adc5b3d49cd93d52d Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Sun, 29 Jul 2012 11:30:25 +0200 Subject: [PATCH] hcidump: Fix EIR data parsing Data passed to ext_inquiry_data_dump are expected to start with length octet which was consumed by get_u8. --- tools/parser/hci.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/parser/hci.c b/tools/parser/hci.c index 6bdbee795..c16f10e68 100644 --- a/tools/parser/hci.c +++ b/tools/parser/hci.c @@ -831,16 +831,19 @@ static inline void ext_inquiry_response_dump(int level, struct frame *frm) { void *ptr = frm->ptr; uint32_t len = frm->len; + uint8_t *data; uint8_t length; + data = frm->ptr; length = get_u8(frm); while (length > 0) { - ext_inquiry_data_dump(level, frm, frm->ptr); + ext_inquiry_data_dump(level, frm, data); frm->ptr += length; frm->len -= length; + data = frm->ptr; length = get_u8(frm); } -- 2.47.3