| From 2c8d9fc4050a47913a4e77fc6fad3118a59a2e01 Mon Sep 17 00:00:00 2001 |
| From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| Date: Thu, 14 Mar 2024 14:31:28 +0800 |
| Subject: [PATCH 073/126] mtk: hostapd: using MLD addr as SA/BSSID for |
| broadcast DEAUTH |
| |
| Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| --- |
| src/ap/ap_drv_ops.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c |
| index 34c2ff211..c7635cae6 100644 |
| --- a/src/ap/ap_drv_ops.c |
| +++ b/src/ap/ap_drv_ops.c |
| @@ -901,7 +901,7 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd, |
| else |
| link_id = hapd->mld_link_id; |
| |
| - if (ap_sta_is_mld(hapd, sta)) |
| + if (ap_sta_is_mld(hapd, sta) || is_multicast_ether_addr(addr)) |
| own_addr = hapd->mld->mld_addr; |
| } |
| #endif /* CONFIG_IEEE80211BE */ |
| @@ -922,7 +922,7 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd, |
| if (hapd->conf->mld_ap) { |
| struct sta_info *sta = ap_get_sta(hapd, addr); |
| |
| - if (ap_sta_is_mld(hapd, sta)) |
| + if (ap_sta_is_mld(hapd, sta) || is_multicast_ether_addr(addr)) |
| own_addr = hapd->mld->mld_addr; |
| } |
| #endif /* CONFIG_IEEE80211BE */ |
| -- |
| 2.18.0 |
| |