From: Andrei Otcheretianski Date: Mon, 22 May 2023 19:34:08 +0000 (+0300) Subject: AP: Don't process SAE/OWE association info on MLD links X-Git-Tag: hostap_2_11~1113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6046aef734674ab25fe86e10bf15cbcd87856649;p=thirdparty%2Fhostap.git AP: Don't process SAE/OWE association info on MLD links Only the main link handles SAE authentication and OWE, skip them on other links. Signed-off-by: Andrei Otcheretianski --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 24403e786..1edc2b892 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -4040,6 +4040,8 @@ static int __check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta, } #endif /* CONFIG_IEEE80211R_AP */ + if (link) + goto skip_sae_owe; #ifdef CONFIG_SAE if (wpa_auth_uses_sae(sta->wpa_sm) && sta->sae && sta->sae->state == SAE_ACCEPTED) @@ -4089,6 +4091,7 @@ static int __check_assoc_ies(struct hostapd_data *hapd, struct sta_info *sta, return resp; } #endif /* CONFIG_OWE */ + skip_sae_owe: #ifdef CONFIG_DPP2 dpp_pfs_free(sta->dpp_pfs);