aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAdrian Granados <adrian@adriangranados.com>2018-04-09 16:21:27 -0400
committerGuy Harris <guy@alum.mit.edu>2018-04-09 21:56:18 +0000
commite085119b66722eeeaa409b65e5cbb7053e171841 (patch)
treefd1850a69771dbd8b0798848b899ccb1f109b548 /epan
parent777b17c374389b88e2f5d658c0827e8e8708d140 (diff)
ieee80211: fixes min and max power values in item text (they are signed).
This change further extends the fix for bug 14593 by making sure the values min, max values shown in the item's info text match the item's children values. Change-Id: Ibac39e1f21a892a02753c3cf1604ed3b14eadc52 Reviewed-on: https://code.wireshark.org/review/26832 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ieee80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c
index 2cb0de3f0e..1a1f53add8 100644
--- a/epan/dissectors/packet-ieee80211.c
+++ b/epan/dissectors/packet-ieee80211.c
@@ -16462,11 +16462,11 @@ ieee80211_tag_power_capability(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
}
proto_tree_add_item(tree, hf_ieee80211_tag_power_capability_min, tvb, offset, 1, ENC_LITTLE_ENDIAN);
- proto_item_append_text(field_data->item_tag, " Min: %d", tvb_get_guint8(tvb, offset));
+ proto_item_append_text(field_data->item_tag, " Min: %d", (gint8)tvb_get_guint8(tvb, offset));
offset += 1;
proto_tree_add_item(tree, hf_ieee80211_tag_power_capability_max, tvb, offset, 1, ENC_LITTLE_ENDIAN);
- proto_item_append_text(field_data->item_tag, ", Max :%d", tvb_get_guint8(tvb, offset));
+ proto_item_append_text(field_data->item_tag, ", Max: %d", (gint8)tvb_get_guint8(tvb, offset));
return tvb_captured_length(tvb);
}