diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-05 19:09:27 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-08-05 19:09:27 +0000 |
commit | 6f9d3b35fd9c653bc27968adb3d048b50a5d68cc (patch) | |
tree | c5c07ec054cb283c2bdf7e697845b692cb6b4cc2 /packet-wlancap.c | |
parent | cf1a06422036e11c688fdbce17bccb642c6ab4ad (diff) |
From Solomon Peachy: signal strength is signed, not unsigned.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8140 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wlancap.c')
-rw-r--r-- | packet-wlancap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-wlancap.c b/packet-wlancap.c index f504845123..213737f661 100644 --- a/packet-wlancap.c +++ b/packet-wlancap.c @@ -10,7 +10,7 @@ * * By Solomon Peachy * - * $Id: packet-wlancap.c,v 1.1 2002/11/06 21:49:29 guy Exp $ + * $Id: packet-wlancap.c,v 1.2 2003/08/05 19:09:27 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -160,7 +160,7 @@ proto_register_wlancap(void) NULL, 0x0, "", HFILL } }, { &hf_wlan_ssi_type, { "SSI Type", "wlancap.ssi_type", FT_UINT32, BASE_DEC, VALS(ssi_type), 0x0, "", HFILL } }, - { &hf_wlan_ssi_signal, { "SSI Signal", "wlancap.ssi_signal", FT_UINT32, + { &hf_wlan_ssi_signal, { "SSI Signal", "wlancap.ssi_signal", FT_INT32, BASE_DEC, NULL, 0x0, "", HFILL } }, { &hf_wlan_ssi_noise, { "SSI Noise", "wlancap.ssi_noise", FT_INT32, BASE_DEC, NULL, 0x0, "", HFILL } }, @@ -243,8 +243,8 @@ dissect_wlancap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) 4, tvb_get_ntohl(tvb, offset)); offset+=4; /* XXX cook ssi_signal (Based on type; ie format) */ - proto_tree_add_uint(wlan_tree, hf_wlan_ssi_signal, tvb, offset, - 4, tvb_get_ntohl(tvb, offset)); + proto_tree_add_int(wlan_tree, hf_wlan_ssi_signal, tvb, offset, + 4, tvb_get_ntohl(tvb, offset)); offset+=4; /* XXX cook ssi_noise (Based on type; ie format) */ proto_tree_add_int(wlan_tree, hf_wlan_ssi_noise, tvb, offset, |