From 001b5aaba6fff28469b10ffeda0ddae3d2691e9a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 5 Mar 2005 01:03:22 +0000 Subject: From Chris Waters: correct an error with the decoding of signal strength information in 802.11 captures. svn path=/trunk/; revision=13594 --- epan/dissectors/packet-tzsp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'epan/dissectors/packet-tzsp.c') diff --git a/epan/dissectors/packet-tzsp.c b/epan/dissectors/packet-tzsp.c index b7db2431e8..5c0325d3b4 100644 --- a/epan/dissectors/packet-tzsp.c +++ b/epan/dissectors/packet-tzsp.c @@ -154,7 +154,7 @@ add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti) length = tvb_get_guint8(tvb, pos++); if (tree) proto_tree_add_int (tree, hf_signal, tvb, pos-2, 3, - tvb_get_ntohs(tvb, pos)); + (char)tvb_get_guint8(tvb, pos)); pos += length; break; @@ -162,7 +162,7 @@ add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti) length = tvb_get_guint8(tvb, pos++); if (tree) proto_tree_add_int (tree, hf_silence, tvb, pos-2, 3, - tvb_get_ntohs(tvb, pos)); + (char)tvb_get_guint8(tvb, pos)); pos += length; break; @@ -470,16 +470,16 @@ proto_register_tzsp(void) "Time", "tzsp.wlan.time", FT_UINT32, BASE_HEX, NULL, 0, "Time", HFILL }}, { &hf_silence, { - "Silence", "tzsp.wlan.silence", FT_INT8, BASE_HEX, + "Silence", "tzsp.wlan.silence", FT_INT8, BASE_DEC, NULL, 0, "Silence", HFILL }}, { &hf_original_length, { "Original Length", "tzsp.original_length", FT_INT16, BASE_DEC, NULL, 0, "OrigLength", HFILL }}, { &hf_signal, { - "Signal", "tzsp.wlan.signal", FT_INT8, BASE_HEX, + "Signal", "tzsp.wlan.signal", FT_INT8, BASE_DEC, NULL, 0, "Signal", HFILL }}, { &hf_rate, { - "Rate", "tzsp.wlan.rate", FT_UINT8, BASE_HEX, + "Rate", "tzsp.wlan.rate", FT_UINT8, BASE_DEC, VALS(rates), 0, "Rate", HFILL }}, { &hf_channel, { "Channel", "tzsp.wlan.channel", FT_UINT8, BASE_DEC, -- cgit v1.2.3