diff options
author | Michal Labedzki <michal.labedzki@tieto.com> | 2014-12-29 09:45:40 +0100 |
---|---|---|
committer | Michal Labedzki <michal.labedzki@tieto.com> | 2015-01-10 15:36:22 +0000 |
commit | f343710ee2c94221190a729eb21536b15c6c304b (patch) | |
tree | fdca9a07a0b72157d053891ff8d5c264cbce2440 /epan/dissectors/packet-bthci_vendor.c | |
parent | 55df238efd77a3d1787a8adc1d5c81d05469bcc8 (diff) | |
download | wireshark-f343710ee2c94221190a729eb21536b15c6c304b.tar.gz wireshark-f343710ee2c94221190a729eb21536b15c6c304b.tar.bz2 wireshark-f343710ee2c94221190a729eb21536b15c6c304b.zip |
Bluetooth: HCI: Detect Vendor by "Read Local Version Information"
There is information about manufacturer of Bluetooth chip.
Also try to detect if that "permament" info is not changed,
if so informs user about this rare event (probably there is an issue)
Change-Id: I1fa748a67ad7943e61d4445d240f0578b94560fc
Reviewed-on: https://code.wireshark.org/review/6408
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bthci_vendor.c')
-rw-r--r-- | epan/dissectors/packet-bthci_vendor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bthci_vendor.c b/epan/dissectors/packet-bthci_vendor.c index 7a42898cea..eb7b942487 100644 --- a/epan/dissectors/packet-bthci_vendor.c +++ b/epan/dissectors/packet-bthci_vendor.c @@ -343,8 +343,6 @@ static const value_string le_filter_policy_vals[] = { { 0, NULL } }; -#define STATUS_SUCCESS 0x00 - void proto_register_bthci_vendor_broadcom(void); void proto_reg_handoff_bthci_vendor_broadcom(void); @@ -1379,7 +1377,7 @@ proto_register_bthci_vendor_broadcom(void) opcode_vals[i_opcode].value = 0; opcode_vals[i_opcode].strptr = NULL; - proto_bthci_vendor_broadcom = proto_register_protocol("Bluetooth Broadcom HCI Command", + proto_bthci_vendor_broadcom = proto_register_protocol("Bluetooth Broadcom HCI", "HCI BROADCOM", "bthci_vendor.broadcom"); bthci_vendor_broadcom_handle = new_register_dissector("bthci_vendor.broadcom", dissect_bthci_vendor_broadcom, proto_bthci_vendor_broadcom); @@ -1396,6 +1394,7 @@ proto_reg_handoff_bthci_vendor_broadcom(void) { btcommon_ad_handle = find_dissector("btcommon.eir_ad.ad"); dissector_add_for_decode_as("bthci_cmd.vendor", bthci_vendor_broadcom_handle); + dissector_add_uint("bluetooth.vendor", 0x000F, bthci_vendor_broadcom_handle); } /* |