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