aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rfid-pn532-hci.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-11-21 01:18:23 +0000
committerMichael Mann <mmann78@netscape.net>2013-11-21 01:18:23 +0000
commit3111b6c88968bec609dfc04912f6cfaf65a6927a (patch)
tree42fb760fbefc0b94d25f750cb9b295aa0df257a0 /epan/dissectors/packet-rfid-pn532-hci.c
parent091fd3d12b70cb91a04130fe4372885ac23c87a0 (diff)
USB CCID and PN532_HCI can be now used in Decode As. Bug 9445 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9445)
From Michal Labedzki svn path=/trunk/; revision=53463
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);
}
/*