Resolve vendor id to string.
This commit is contained in:
parent
84662d68e5
commit
6ececd21a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360369
@ -267,7 +267,8 @@ static int hci_dump_adv(uint8_t *data, int length)
|
|||||||
case 0xff:
|
case 0xff:
|
||||||
if (elemlen < 2)
|
if (elemlen < 2)
|
||||||
break;
|
break;
|
||||||
printf("Vendor:%04x:", data[0]|data[1]<<8);
|
printf("Vendor:%s:",
|
||||||
|
hci_manufacturer2str(data[0]|data[1]<<8));
|
||||||
for (i = 2; i < MIN(length,elemlen); i++) {
|
for (i = 2; i < MIN(length,elemlen); i++) {
|
||||||
printf("%02x ",data[i]);
|
printf("%02x ",data[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user