aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-10-05 09:30:29 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-10-05 09:30:29 +0200
commitc17020b4896833f03d4b40da48ee87a99b10bc6d (patch)
tree1794c75c1bf9a9232ed7f0a828283ed15230b305
parent646bd738cce8186a6aa592738ffaf4fa9b12761d (diff)
downloadbluez-hcidump-c17020b4896833f03d4b40da48ee87a99b10bc6d.tar.gz
bluez-hcidump-c17020b4896833f03d4b40da48ee87a99b10bc6d.tar.xz
bluez-hcidump-c17020b4896833f03d4b40da48ee87a99b10bc6d.zip
Fix breakage with LE advertising reports decoding
-rw-r--r--parser/hci.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/parser/hci.c b/parser/hci.c
index b70bb1b..014c8cd 100644
--- a/parser/hci.c
+++ b/parser/hci.c
@@ -3291,16 +3291,16 @@ static inline void evt_le_advertising_report_dump(int level, struct frame *frm)
printf("%s (%d)\n", evttype2str(info->evt_type), info->evt_type);
p_indent(level, frm);
- printf("bdaddr %s (%s) rssi %d\n", addr,
- bdaddrtype2str(info->bdaddr_type), info->rssi);
+ printf("bdaddr %s (%s)\n", addr,
+ bdaddrtype2str(info->bdaddr_type));
- frm->ptr += 9;
- frm->len -= 9;
+ frm->ptr += LE_ADVERTISING_INFO_SIZE;
+ frm->len -= LE_ADVERTISING_INFO_SIZE;
ext_inquiry_response_dump(level, frm);
- frm->ptr = ptr + LE_ADVERTISING_INFO_SIZE;
- frm->len = len - LE_ADVERTISING_INFO_SIZE;
+ frm->ptr = ptr + 1;
+ frm->len = len - 1;
}
}