wlantest: Allow missing RSNE in S1G beacon
S1G beacons save a few bytes by not requiring the RSNE in beacon if RSN BSS is configured. Handle this in wlantest by only clearing RSNE from the BSS info if frame is a Probe Response frame. Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
This commit is contained in:
parent
eac2b65635
commit
be96f4e8d2
4 changed files with 15 additions and 2 deletions
|
@ -566,6 +566,11 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
|
|||
elems->dils = pos;
|
||||
elems->dils_len = elen;
|
||||
break;
|
||||
case WLAN_EID_S1G_CAPABILITIES:
|
||||
if (elen < 15)
|
||||
break;
|
||||
elems->s1g_capab = pos;
|
||||
break;
|
||||
case WLAN_EID_FRAGMENT:
|
||||
ieee802_11_parse_fragment(&elems->frag_ies, pos, elen);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue