]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Don't process SAE/OWE association info on MLD links
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 22 May 2023 19:34:08 +0000 (22:34 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 15 Jun 2023 14:34:02 +0000 (17:34 +0300)
Only the main link handles SAE authentication and OWE, skip them on
other links.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/ieee802_11.c

index 24403e786ced445aced89a09e2018198effa8305..1edc2b892627d98c145cb7bea1ef9d6819ef3734 100644 (file)
@@ -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);