[PATCH] AP: Add support for MLD link group key initialization
Allen Ye
allen.ye at mediatek.com
Wed Jan 14 01:20:07 PST 2026
Currently, only the assoc link sets the first_sta_seen flag in a mld
connection. That makes the GTK of the other links may be reset if
another station associates with the other links.
This patch initializes the GTK and sets the first_sta_seen flag for all
links in a mld connection.
Reviewed-by: Money Wang <money.wang at mediatek.com>
Signed-off-by: Allen Ye <allen.ye at mediatek.com>
---
src/ap/wpa_auth.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
index 49268b21e..0bc89f771 100644
--- a/src/ap/wpa_auth.c
+++ b/src/ap/wpa_auth.c
@@ -2641,9 +2641,16 @@ static void wpa_group_ensure_init(struct wpa_authenticator *wpa_auth,
SM_STATE(WPA_PTK, AUTHENTICATION2)
{
+ int link_id;
+
SM_ENTRY_MA(WPA_PTK, AUTHENTICATION2, wpa_ptk);
wpa_group_ensure_init(sm->wpa_auth, sm->group);
+#ifdef CONFIG_IEEE80211BE
+ for_each_sm_auth(sm, link_id)
+ wpa_group_ensure_init(sm->mld_links[link_id].wpa_auth,
+ sm->mld_links[link_id].wpa_auth->group);
+#endif /* CONFIG_IEEE80211BE */
sm->ReAuthenticationRequest = false;
/*
--
2.45.2
More information about the Hostap
mailing list