blob: 202d608a653620785d04a3522184593b9771a29e [file] [log] [blame]
developer091dbc32024-03-21 17:16:35 +08001From 7990c3399f01c4d87a2e0b660a0f3f79c34cd45a Mon Sep 17 00:00:00 2001
2From: Shayne Chen <shayne.chen@mediatek.com>
3Date: Mon, 29 Jan 2024 11:24:28 +0800
4Subject: [PATCH 61/69] mtk: hostapd: fix mld_assoc_link_id
5
6Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
7---
8 src/ap/hostapd.c | 10 ++++++----
9 1 file changed, 6 insertions(+), 4 deletions(-)
10
11diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
12index b85525c28..03d34a178 100644
13--- a/src/ap/hostapd.c
14+++ b/src/ap/hostapd.c
15@@ -3721,11 +3721,13 @@ void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
16 }
17
18 #ifdef CONFIG_IEEE80211BE
19- if (ap_sta_is_mld(hapd, sta) &&
20- sta->mld_assoc_link_id != hapd->mld_link_id)
21- return;
22+ if (ap_sta_is_mld(hapd, sta)) {
23+ if (sta->mld_assoc_link_id != hapd->mld_link_id)
24+ return;
25+ mld_assoc_link_id = sta->mld_assoc_link_id;
26+ }
27 #endif /* CONFIG_IEEE80211BE */
28- if (mld_assoc_link_id != -2)
29+ if (mld_assoc_link_id != -2)
30 hostapd_prune_associations(hapd, sta->addr, mld_assoc_link_id);
31
32 ap_sta_clear_disconnect_timeouts(hapd, sta);
33--
342.39.2
35