[PATCH v2 2/3] AP: Always re-add stations that use MLO
Benjamin Berg
benjamin at sipsolutions.net
Mon Jan 26 08:03:03 PST 2026
From: Benjamin Berg <benjamin.berg at intel.com>
When reauthenticating a STA MLD it might have a different set of links
or may have changed its link address. In either case, should anything
change then the STA needs to be reconfigured in the driver.
It is reasonable to simply always do this reconfiguration even if it is
not needed in some corner cases.
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/ap/ieee802_11.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 61a99cc293..a3dbeaf6b3 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -3642,9 +3642,13 @@ static void handle_auth(struct hostapd_data *hapd,
*
* PASN authentication does not require adding/removing station to the
* driver so skip this flow in case of PASN authentication.
+ *
+ * Always re-add non-AP MLD stations to ensure only the authentication
+ * link is inserted with the correct address (which may have changed).
*/
if (FULL_AP_CLIENT_STATE_SUPP(hapd->iface->drv_flags) &&
- (!(sta->flags & WLAN_STA_MFP) || !ap_sta_is_authorized(sta)) &&
+ (!(sta->flags & WLAN_STA_MFP) || !ap_sta_is_authorized(sta) ||
+ mld_sta) &&
!(hapd->conf->mesh & MESH_ENABLED) &&
!(sta->added_unassoc) && auth_alg != WLAN_AUTH_PASN) {
if (ap_sta_re_add(hapd, sta) < 0) {
--
2.52.0
More information about the Hostap
mailing list