blob: 607e2605a44cd20d41b8543fc9eed41cbfd56285 [file] [log] [blame]
From ce0ccc758fc8a5076ce3476f627b00019cf90ab1 Mon Sep 17 00:00:00 2001
From: Michael-CY Lee <michael-cy.lee@mediatek.com>
Date: Fri, 1 Mar 2024 16:59:53 +0800
Subject: [PATCH 093/104] mtk: hostapd: prevent getting non-MLD STA for other
links
CR-Id: WCNCR00289305
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
---
src/ap/sta_info.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
index 2b8307a27..9a8510980 100644
--- a/src/ap/sta_info.c
+++ b/src/ap/sta_info.c
@@ -87,7 +87,8 @@ struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta)
for (s = h->sta_list; s; s = s->next)
if ((!os_memcmp(s->setup_link_addr, sta, 6) ||
!os_memcmp(s->addr, sta, 6)) &&
- s->flags & WLAN_STA_ASSOC)
+ s->flags & WLAN_STA_ASSOC &&
+ s->mld_info.mld_sta)
return s;
}
}
--
2.39.2