]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Fix STA's flag wrongly updated in SME-in-driver cases
authorHuang Chenming <chenhuan@qti.qualcomm.com>
Sat, 26 Jul 2025 04:29:31 +0000 (09:59 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 14 Aug 2025 09:38:05 +0000 (12:38 +0300)
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 <chenhuan@qti.qualcomm.com>
src/ap/ieee802_1x.c

index efdf607ee8df386ac497cc12e9b029b509ab9685..61e8bfaed88e0544b9b2f6ec59438ec005988992 100644 (file)
@@ -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;