Correctly set the "short GI" flag in the generic radio information structure.

For 802.11n, if the GI length is present in the MCS field and is "short
GI", "gi_length" is equal to 1, not to 0, so set the "short GI" flag in
the generic radio information to "gi_length".

Bug: 12123
Change-Id: Ica2c5794698a643a6393f0468cdbfe025aa90074
Reviewed-on: https://code.wireshark.org/review/13950
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2016-02-15 02:57:15 -08:00
parent ec863197d9
commit 143ce94713
1 changed files with 1 additions and 1 deletions

View File

@ -1373,7 +1373,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* u
gi_length = (mcs_flags & IEEE80211_RADIOTAP_MCS_SGI) ?
1 : 0;
phdr.phy_info.info_11n.has_short_gi = TRUE;
phdr.phy_info.info_11n.short_gi = (gi_length == 0);
phdr.phy_info.info_11n.short_gi = gi_length;
} else {
gi_length = 0;
can_calculate_rate = FALSE; /* no GI width */