developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 2c8d9fc4050a47913a4e77fc6fad3118a59a2e01 Mon Sep 17 00:00:00 2001 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Thu, 14 Mar 2024 14:31:28 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 4 | Subject: [PATCH 073/126] mtk: hostapd: using MLD addr as SA/BSSID for |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 5 | broadcast DEAUTH |
| 6 | |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 7 | Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 8 | --- |
| 9 | src/ap/ap_drv_ops.c | 4 ++-- |
| 10 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | |
| 12 | diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 13 | index 34c2ff211..c7635cae6 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 14 | --- a/src/ap/ap_drv_ops.c |
| 15 | +++ b/src/ap/ap_drv_ops.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 16 | @@ -901,7 +901,7 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 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 */ |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 25 | @@ -922,7 +922,7 @@ int hostapd_drv_sta_disassoc(struct hostapd_data *hapd, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 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 | -- |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 35 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 36 | |