diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-06-23 17:18:45 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-06-24 00:19:18 +0000 |
commit | a8acb53e36d07abe5178ac09821f0ebe32ba65e0 (patch) | |
tree | 0587a3af3eee1a16eac3ef0fc118c8389418aff2 /epan/dissectors/packet-ieee80211-radiotap.c | |
parent | fa6ebae939059291d8b5a8d52af89698befeff5f (diff) |
Pass the signal and noise dBm values to the 802.11 radio dissector.
Change-Id: Ia3fa6ba0b1d16315c77895f3e8ae96ed7e5e1e02
Reviewed-on: https://code.wireshark.org/review/9079
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ieee80211-radiotap.c')
-rw-r--r-- | epan/dissectors/packet-ieee80211-radiotap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ieee80211-radiotap.c b/epan/dissectors/packet-ieee80211-radiotap.c index 98543f761b..71c3ba6bec 100644 --- a/epan/dissectors/packet-ieee80211-radiotap.c +++ b/epan/dissectors/packet-ieee80211-radiotap.c @@ -1025,6 +1025,8 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) case IEEE80211_RADIOTAP_DBM_ANTSIGNAL: dbm = (gint8)tvb_get_guint8(tvb, offset); + phdr.presence_flags |= PHDR_802_11_HAS_SIGNAL_DBM; + phdr.signal_dbm = dbm; col_add_fstr(pinfo->cinfo, COL_RSSI, "%d dBm", dbm); proto_tree_add_int_format_value(radiotap_tree, hf_radiotap_dbm_antsignal, @@ -1036,6 +1038,8 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) case IEEE80211_RADIOTAP_DBM_ANTNOISE: dbm = (gint8) tvb_get_guint8(tvb, offset); + phdr.presence_flags |= PHDR_802_11_HAS_NOISE_DBM; + phdr.noise_dbm = dbm; if (tree) { proto_tree_add_int_format_value(radiotap_tree, hf_radiotap_dbm_antnoise, |