]> git.ipfire.org Git - thirdparty/hostap.git/commit
SAE: Make sme_sae_auth() return IE offset
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 6 Dec 2022 09:46:05 +0000 (11:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 17 Dec 2022 15:11:16 +0000 (17:11 +0200)
commit694a1c68739954f40d6d3f95ecc96557a33f27c9
tree3d0f477af6efe284b0aa96e2c663456bcbe1dbc1
parent870edfd67e414e27248f990d7636a62bcbe4ccc0
SAE: Make sme_sae_auth() return IE offset

Authentication frames include several fixed body parts (see Table 9-68
(Authentication frame body) and Table 9-69 (Presence of fields and
elements in Authentication frames) in IEEE P802.11-REVme/D2.0).

To be able to parse the IE part, these fields need to be skipped. Since
SAE logic already implements this parsing, change SAE authentication
handling functions to return the offset to the IE part. This preparation
is needed for future MLD patches that need to parse out the ML related
elements in the Authentication frames.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/ieee802_11.c
src/common/common_module_tests.c
src/common/sae.c
src/common/sae.h
src/pasn/pasn_initiator.c
src/pasn/pasn_responder.c
tests/fuzzing/sae/sae.c
wpa_supplicant/sme.c