From e4f4e5a872a52aa327e40f4a7ee24959dfd9257c Mon Sep 17 00:00:00 2001 From: Huang Chenming Date: Sat, 26 Jul 2025 09:59:31 +0530 Subject: [PATCH] AP MLD: Fix STA's flag wrongly updated in SME-in-driver cases In ieee802_1x_ml_set_sta_authorized() when trying to update partner link STA's flag, AID checking is not sufficient enough as AID is always 0 for SME-in-driver cases. Check for STA MLD address to avoid wrongly update other STA's flag. Signed-off-by: Huang Chenming --- src/ap/ieee802_1x.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index efdf607ee..61e8bfaed 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -182,6 +182,11 @@ static void ieee802_1x_ml_set_sta_authorized(struct hostapd_data *hapd, tmp_sta->aid != sta->aid) continue; + if (!ether_addr_equal( + tmp_sta->mld_info.common_info.mld_addr, + sta->mld_info.common_info.mld_addr)) + continue; + ieee802_1x_set_authorized(tmp_hapd, tmp_sta, authorized, true); break; -- 2.47.3