Bluetooth: HFP: Fix "Parameters" field highlight

It seems that "Parameters" highlight only one byte instead of all
parameters. Fix that before someone requests to fix that.

Change-Id: If056f16ffbfc234e5d6443fb43b34bc107df964f
Reviewed-on: https://code.wireshark.org/review/20898
Petri-Dish: Michal Labedzki <michal.labedzki@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Michal Labedzki 2017-03-04 19:03:15 +01:00 committed by Michael Mann
parent 34fa55cbb2
commit 174dc4b363
1 changed files with 1 additions and 1 deletions

View File

@ -1754,6 +1754,7 @@ dissect_at_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
parameters_item = proto_tree_add_none_format(command_tree, hf_parameters, tvb,
offset, 0, "Parameters");
parameters_tree = proto_item_add_subtree(parameters_item, ett_bthfp_parameters);
first_parameter_offset = offset;
data = NULL;
@ -1801,7 +1802,6 @@ dissect_at_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
parameter_length += 1;
}
first_parameter_offset = offset;
if (type == TYPE_ACTION || type == TYPE_RESPONSE) {
if (i_at_cmd && (i_at_cmd->dissect_parameter != NULL &&
!i_at_cmd->dissect_parameter(tvb, pinfo, parameters_tree, offset, role,