aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hci_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-hci_usb.c')
-rw-r--r--epan/dissectors/packet-hci_usb.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-hci_usb.c b/epan/dissectors/packet-hci_usb.c
index 37be9330e6..b318f06af6 100644
--- a/epan/dissectors/packet-hci_usb.c
+++ b/epan/dissectors/packet-hci_usb.c
@@ -63,6 +63,7 @@ static wmem_tree_t *fragment_info_table = NULL;
static reassembly_table hci_usb_reassembly_table;
+static dissector_handle_t hci_usb_handle;
static dissector_handle_t bthci_cmd_handle;
static dissector_handle_t bthci_evt_handle;
static dissector_handle_t bthci_acl_handle;
@@ -338,7 +339,7 @@ proto_register_hci_usb(void)
proto_hci_usb = proto_register_protocol("Bluetooth HCI USB Transport", "HCI_USB", "hci_usb");
proto_register_field_array(proto_hci_usb, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
- new_register_dissector("hci_usb", dissect_hci_usb, proto_hci_usb);
+ hci_usb_handle = new_register_dissector("hci_usb", dissect_hci_usb, proto_hci_usb);
module = prefs_register_protocol(proto_hci_usb, NULL);
prefs_register_static_text_preference(module, "bthci_usb.version",
@@ -349,9 +350,6 @@ proto_register_hci_usb(void)
void
proto_reg_handoff_hci_usb(void)
{
- dissector_handle_t hci_usb_handle;
-
- hci_usb_handle = find_dissector("hci_usb");
bthci_cmd_handle = find_dissector("bthci_cmd");
bthci_evt_handle = find_dissector("bthci_evt");
bthci_acl_handle = find_dissector("bthci_acl");
@@ -366,6 +364,7 @@ proto_reg_handoff_hci_usb(void)
dissector_add_uint("usb.product", (0x13d3 << 16) | 0x3375, hci_usb_handle);
dissector_add_uint("usb.protocol", 0xE00101, hci_usb_handle);
+ dissector_add_uint("usb.protocol", 0xE00104, hci_usb_handle);
dissector_add_handle("usb.device", hci_usb_handle);
}