Resolve vendor id to string.

This commit is contained in:
Takanori Watanabe 2020-04-27 09:13:22 +00:00
parent 84662d68e5
commit 6ececd21a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360369

View File

@ -267,7 +267,8 @@ static int hci_dump_adv(uint8_t *data, int length)
case 0xff:
if (elemlen < 2)
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++) {
printf("%02x ",data[i]);
}