aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee80211-airopeek.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-02-15 00:34:05 +0000
committerGuy Harris <guy@alum.mit.edu>2013-02-15 00:34:05 +0000
commit39a742107e45d3095f944bb2f6a297a82ed5f1c5 (patch)
treeecb3f192c7ab17614c182d194363f557701708ee /epan/dissectors/packet-ieee80211-airopeek.c
parent58a2320b8987c5df2f94e0fdb236a995c6e87f7a (diff)
Put in a comment explaining what the signal strength value means here.
svn path=/trunk/; revision=47664
Diffstat (limited to 'epan/dissectors/packet-ieee80211-airopeek.c')
-rw-r--r--epan/dissectors/packet-ieee80211-airopeek.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ieee80211-airopeek.c b/epan/dissectors/packet-ieee80211-airopeek.c
index 3b286537cf..5e0f579511 100644
--- a/epan/dissectors/packet-ieee80211-airopeek.c
+++ b/epan/dissectors/packet-ieee80211-airopeek.c
@@ -72,6 +72,16 @@ dissect_airopeek(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(airopeek_tree, hf_channel, tvb, 1, 1, ENC_NA);
signal_level = tvb_get_guint8(tvb, 2);
+ /*
+ * This is signal strength as a percentage of the maximum, i.e.
+ * (RXVECTOR RSSI/RXVECTOR RSSI_Max)*100, or, at least, that's
+ * what I infer it is, given what the WildPackets note "Converting
+ * Signal Strength Percentage to dBm Values" says.
+ *
+ * It also says that the conversion the percentage to a dBm value is
+ * an adapter-dependent process, so, as we don't know what type of
+ * adapter was used to do the capture, we can't do the conversion.
+ */
col_add_fstr(pinfo->cinfo, COL_RSSI, "%u%%", signal_level);
if (tree) {
proto_tree_add_uint_format(airopeek_tree, hf_signal_strength, tvb, 2, 1,