blob: 0cff0328ef9cf8cd31c408e061ade05f41b2cf5e [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
developer66e89bc2024-04-23 14:50:01 +08007Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
8---
9 src/ap/sta_info.c | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c
13index 2b8307a27..9a8510980 100644
14--- a/src/ap/sta_info.c
15+++ b/src/ap/sta_info.c
16@@ -87,7 +87,8 @@ struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta)
17 for (s = h->sta_list; s; s = s->next)
18 if ((!os_memcmp(s->setup_link_addr, sta, 6) ||
19 !os_memcmp(s->addr, sta, 6)) &&
20- s->flags & WLAN_STA_ASSOC)
21+ s->flags & WLAN_STA_ASSOC &&
22+ s->mld_info.mld_sta)
23 return s;
24 }
25 }
26--
272.39.2
28