blob: c62de68b96144169df85e40d24f614f3d2177283 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From f4907a96f2e0494b03c7447ae2f5aac20dab61f8 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Fri, 1 Mar 2024 16:59:53 +0800
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 071/126] mtk: hostapd: prevent getting non-MLD STA for other
developer66e89bc2024-04-23 14:50:01 +08005 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
developer05f3b2b2024-08-19 19:17:34 +080013index ea34d347f..44d98d5e0 100644
developer66e89bc2024-04-23 14:50:01 +080014--- 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--
developer05f3b2b2024-08-19 19:17:34 +0800272.18.0
developer66e89bc2024-04-23 14:50:01 +080028