blob: 0dd558d7f4c3e396f5240d1f5e0e9b5f0982a7bc [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From 2c8d9fc4050a47913a4e77fc6fad3118a59a2e01 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Thu, 14 Mar 2024 14:31:28 +0800
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 073/126] mtk: hostapd: using MLD addr as SA/BSSID for
developer66e89bc2024-04-23 14:50:01 +08005 broadcast DEAUTH
6
developer66e89bc2024-04-23 14:50:01 +08007Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
developer66e89bc2024-04-23 14:50:01 +08008---
9 src/ap/ap_drv_ops.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
developer05f3b2b2024-08-19 19:17:34 +080013index 34c2ff211..c7635cae6 100644
developer66e89bc2024-04-23 14:50:01 +080014--- a/src/ap/ap_drv_ops.c
15+++ b/src/ap/ap_drv_ops.c
developer05f3b2b2024-08-19 19:17:34 +080016@@ -901,7 +901,7 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd,
developer66e89bc2024-04-23 14:50:01 +080017 else
18 link_id = hapd->mld_link_id;
19
20- if (ap_sta_is_mld(hapd, sta))
21+ if (ap_sta_is_mld(hapd, sta) || is_multicast_ether_addr(addr))
22 own_addr = hapd->mld->mld_addr;
23 }
24 #endif /* CONFIG_IEEE80211BE */
developer05f3b2b2024-08-19 19:17:34 +080025@@ -922,7 +922,7 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
developer66e89bc2024-04-23 14:50:01 +080026 if (hapd->conf->mld_ap) {
27 struct sta_info *sta = ap_get_sta(hapd, addr);
28
29- if (ap_sta_is_mld(hapd, sta))
30+ if (ap_sta_is_mld(hapd, sta) || is_multicast_ether_addr(addr))
31 own_addr = hapd->mld->mld_addr;
32 }
33 #endif /* CONFIG_IEEE80211BE */
34--
developer05f3b2b2024-08-19 19:17:34 +0800352.18.0
developer66e89bc2024-04-23 14:50:01 +080036