802.11(ad): Fix SSW Feedback dissection when Sector Sweep Direction = Responder

For the Sector Sweep Frame in which the Sector Sweep Direction = Responder, the format of the Sector Sweep Feedback Field should be the one in the standard (Figure 8-431d—SSW Feedback field format when not transmitted as part of an ISS) i.e. similar to the one in Sector Sweep Feedback Frame and Acknowledgement.

Issue reported by Hany ASSASA

bug: 13244
Change-Id: Ic8c6d83fc32d017fb73116a54759608498f99452
Reviewed-on: https://code.wireshark.org/review/19590
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2017-01-08 18:46:14 +01:00 committed by Anders Broman
parent 9a1dfcca60
commit cbb5068b00
1 changed files with 9 additions and 1 deletions

View File

@ -17451,9 +17451,17 @@ dissect_ieee80211_common(tvbuff_t *tvb, packet_info *pinfo,
break;
}
case CTRL_SSW: {
guint32 sector_sweep;
sector_sweep = tvb_get_letoh24(tvb, offset);
offset += add_ff_sector_sweep(hdr_tree, tvb, pinfo, offset);
/* offset += commented to avoid Clang warnings*/
add_ff_sector_sweep_feedback_from_iss(hdr_tree, tvb, pinfo, offset);
/* if Sector Sweep Direction = Responder, use SW Feedback field format when not transmitted as part of an ISS */
if(sector_sweep & 0x00001) {
add_ff_sector_sweep_feedback_to_iss(hdr_tree, tvb, pinfo, offset);
} else {
add_ff_sector_sweep_feedback_from_iss(hdr_tree, tvb, pinfo, offset);
}
break;
}
case CTRL_SSW_ACK: