diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-06-21 08:55:14 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-06-21 08:16:38 +0000 |
commit | 6ccee3ecd52b1827152a813fc05b0bca73bb5d1d (patch) | |
tree | fd76755e7646fba62de5179fc9bf0c1eac312ac2 /epan/dissectors/packet-bthci_vendor.c | |
parent | 6ee546457c69d9ad46b1490b13db6afb1974fe15 (diff) |
bthci: Show unknown ocf as undecoded
Don't show unknown ocf values as unexpected parameters.
Change-Id: I08a6c8c20d6382a847f0a2969e4c523a2873dd6f
Reviewed-on: https://code.wireshark.org/review/16048
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/dissectors/packet-bthci_vendor.c')
-rw-r--r-- | epan/dissectors/packet-bthci_vendor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bthci_vendor.c b/epan/dissectors/packet-bthci_vendor.c index 2f227679f2..b791421eea 100644 --- a/epan/dissectors/packet-bthci_vendor.c +++ b/epan/dissectors/packet-bthci_vendor.c @@ -1008,12 +1008,17 @@ dissect_bthci_vendor_broadcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre case 0x0057: /* Set ACL Priority */ case 0x006D: /* Write I2S PCM Interface Parameter */ case 0x007E: /* Enable WBS */ - default: if (tvb_captured_length_remaining(tvb, offset) > 0) { sub_item = proto_tree_add_item(main_tree, hf_data, tvb, offset, length, ENC_NA); expert_add_info(pinfo, sub_item, &ei_unexpected_parameter); offset += tvb_captured_length_remaining(tvb, offset); } + default: + if (length > 0) { + sub_item = proto_tree_add_item(main_tree, hf_data, tvb, offset, length, ENC_NA); + expert_add_info(pinfo, sub_item, &ei_undecoded); + offset += length; + } } break; |