aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rfid-pn532-hci.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-rfid-pn532-hci.c')
-rw-r--r--epan/dissectors/packet-rfid-pn532-hci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rfid-pn532-hci.c b/epan/dissectors/packet-rfid-pn532-hci.c
index d1218291f3..d0ebef57c1 100644
--- a/epan/dissectors/packet-rfid-pn532-hci.c
+++ b/epan/dissectors/packet-rfid-pn532-hci.c
@@ -265,7 +265,7 @@ proto_register_pn532_hci(void)
};
proto_pn532_hci = proto_register_protocol("NXP PN532 HCI", "PN532_HCI", "pn532_hci");
- new_register_dissector("pn532_hci", dissect_pn532_hci, proto_pn532_hci);
+ pn532_hci_handle = new_register_dissector("pn532_hci", dissect_pn532_hci, proto_pn532_hci);
proto_register_field_array(proto_pn532_hci, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -282,11 +282,11 @@ void
proto_reg_handoff_pn532_hci(void)
{
pn532_handle = find_dissector("pn532");
- pn532_hci_handle = find_dissector("pn532_hci");
dissector_add_uint("usb.product", (0x04e6 << 16) | 0x5591, pn532_hci_handle);
dissector_add_handle("usb.device", pn532_hci_handle);
+ dissector_add_handle("usb.protocol", pn532_hci_handle);
}
/*