blob: e31a05cb1fbb04bc8b21a400033206731431938f [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From 161c066295847f1c1828f641e789565fe4bacd11 Mon Sep 17 00:00:00 2001
2From: Michael-CY Lee <michael-cy.lee@mediatek.com>
3Date: Thu, 14 Mar 2024 14:31:28 +0800
4Subject: [PATCH 095/104] mtk: hostapd: using MLD addr as SA/BSSID for
5 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
13index 2c535f24a..3c1609656 100644
14--- a/src/ap/ap_drv_ops.c
15+++ b/src/ap/ap_drv_ops.c
16@@ -872,7 +872,7 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd,
17 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 */
25@@ -893,7 +893,7 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd,
26 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--
352.39.2
36