aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bthci_evt.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-12-23 14:57:45 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-01-10 15:35:39 +0000
commitd6e040989280e9999ddbe0a2b41f9fd80c746dbd (patch)
treed4990f08ec610aa06bc060a081af1bd3893113a0 /epan/dissectors/packet-bthci_evt.c
parentc69b2ab32001fecb510ffb2b6799b60068872f99 (diff)
Bluetooth: Add HCI Vendor Broadcom dissector
Since those command/events are vendor specific and proprietary not all commands/events are implemented. All implemented commands can be found in Open Source implementations for Broadcom chip. If you found more, please let me know. Change-Id: Ie68d3737c88a8cef39260a9d93192cfc81871d6c Reviewed-on: https://code.wireshark.org/review/6406 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/dissectors/packet-bthci_evt.c')
-rw-r--r--epan/dissectors/packet-bthci_evt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-bthci_evt.c b/epan/dissectors/packet-bthci_evt.c
index 9f3a1e54b7..121529e402 100644
--- a/epan/dissectors/packet-bthci_evt.c
+++ b/epan/dissectors/packet-bthci_evt.c
@@ -445,7 +445,7 @@ static const value_string evt_code_vals[] = {
{0xff, "Vendor-Specific"},
{0, NULL}
};
-static value_string_ext evt_code_vals_ext = VALUE_STRING_EXT_INIT(evt_code_vals);
+value_string_ext bthci_evt_evt_code_vals_ext = VALUE_STRING_EXT_INIT(evt_code_vals);
static const value_string bthci_cmd_status_pending_vals[] = {
{0x00, "Pending"},
@@ -3380,7 +3380,7 @@ dissect_bthci_evt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
evt_code = tvb_get_guint8(tvb, offset);
proto_tree_add_item(bthci_evt_tree, hf_bthci_evt_code, tvb, offset, 1, ENC_LITTLE_ENDIAN);
- proto_item_append_text(bthci_evt_tree, " - %s", val_to_str_ext_const(evt_code, &evt_code_vals_ext, "Unknown 0x%08x"));
+ proto_item_append_text(bthci_evt_tree, " - %s", val_to_str_ext_const(evt_code, &bthci_evt_evt_code_vals_ext, "Unknown 0x%08x"));
offset += 1;
param_length = tvb_get_guint8(tvb, offset);
@@ -3390,7 +3390,7 @@ dissect_bthci_evt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
col_set_str(pinfo->cinfo, COL_PROTOCOL, "HCI_EVT");
- col_append_str(pinfo->cinfo, COL_INFO, val_to_str_ext_const(evt_code, &evt_code_vals_ext, "Unknown 0x%08x"));
+ col_append_str(pinfo->cinfo, COL_INFO, val_to_str_ext_const(evt_code, &bthci_evt_evt_code_vals_ext, "Unknown 0x%08x"));
if (param_length > 0) {
switch(evt_code) {
@@ -3704,7 +3704,7 @@ proto_register_bthci_evt(void)
static hf_register_info hf[] = {
{ &hf_bthci_evt_code,
{ "Event Code", "bthci_evt.code",
- FT_UINT8, BASE_HEX | BASE_EXT_STRING, &evt_code_vals_ext, 0x0,
+ FT_UINT8, BASE_HEX | BASE_EXT_STRING, &bthci_evt_evt_code_vals_ext, 0x0,
NULL, HFILL }
},
{ &hf_bthci_evt_param_length,