summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-ieee80211-radio.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-07-07 00:39:50 -0700
committerGuy Harris <guy@alum.mit.edu>2015-07-07 07:40:31 +0000
commit53fcaabe66a7a307f231412111f7890b29bcb6d2 (patch)
tree974bf8c981c17daee0e2070b537328e66ac2bab8 /epan/dissectors/packet-ieee80211-radio.c
parent21754f43e1e7139bcd3d673714c2a191681a63e9 (diff)
downloadwireshark-53fcaabe66a7a307f231412111f7890b29bcb6d2.tar.gz
Use the NSS provided by the Ixia Veriwave hardware.
It doesn't appear to provide the FEC type, although radiotap does, so add a flag to indicate whether we have that. Change-Id: I298d79bc6b640ee2408c3d70075c32bf331a210c Reviewed-on: https://code.wireshark.org/review/9533 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ieee80211-radio.c')
-rw-r--r--epan/dissectors/packet-ieee80211-radio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee80211-radio.c b/epan/dissectors/packet-ieee80211-radio.c
index 0b9f404abf..084494ba79 100644
--- a/epan/dissectors/packet-ieee80211-radio.c
+++ b/epan/dissectors/packet-ieee80211-radio.c
@@ -879,8 +879,10 @@ dissect_wlan_radio (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void
proto_tree_add_uint(user_tree, hf_wlan_radio_11ac_nsts, tvb, 0, 0,
nsts);
}
- proto_tree_add_uint(user_tree, hf_wlan_radio_11ac_fec, tvb, 0, 0,
- (phdr->phy_info.info_11ac.fec >> i) & 0x01);
+ if (phdr->phy_info.info_11ac.presence_flags & PHDR_802_11AC_HAS_FEC) {
+ proto_tree_add_uint(user_tree, hf_wlan_radio_11ac_fec, tvb, 0, 0,
+ (phdr->phy_info.info_11ac.fec >> i) & 0x01);
+ }
/*
* If we can calculate the data rate for this user, do so.