Allow RSNXE Override element to override RSNXE contents during parsing
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
48ca68f6f8
commit
b8a2d11ae0
1 changed files with 6 additions and 2 deletions
|
@ -3131,8 +3131,12 @@ bool ieee802_11_rsnx_capab_len(const u8 *rsnxe, size_t rsnxe_len,
|
|||
|
||||
bool ieee802_11_rsnx_capab(const u8 *rsnxe, unsigned int capab)
|
||||
{
|
||||
return ieee802_11_rsnx_capab_len(rsnxe ? rsnxe + 2 : NULL,
|
||||
rsnxe ? rsnxe[1] : 0, capab);
|
||||
if (!rsnxe)
|
||||
return false;
|
||||
if (rsnxe[0] == WLAN_EID_VENDOR_SPECIFIC && rsnxe[1] >= 4 + 1)
|
||||
return ieee802_11_rsnx_capab_len(rsnxe + 2 + 4, rsnxe[1] - 4,
|
||||
capab);
|
||||
return ieee802_11_rsnx_capab_len(rsnxe + 2, rsnxe[1], capab);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue