From 6046aef734674ab25fe86e10bf15cbcd87856649 Mon Sep 17 00:00:00 2001 From: Andrei Otcheretianski Date: Mon, 22 May 2023 22:34:08 +0300 Subject: [PATCH] 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 --- src/ap/ieee802_11.c | 3 +++ 1 file changed, 3 insertions(+) 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);