developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame^] | 1 | From ce0ccc758fc8a5076ce3476f627b00019cf90ab1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Fri, 1 Mar 2024 16:59:53 +0800 |
| 4 | Subject: [PATCH 093/104] mtk: hostapd: prevent getting non-MLD STA for other |
| 5 | links |
| 6 | |
| 7 | CR-Id: WCNCR00289305 |
| 8 | Signed-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 | |
| 13 | diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c |
| 14 | index 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 | -- |
| 28 | 2.39.2 |
| 29 | |