developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From 161c066295847f1c1828f641e789565fe4bacd11 Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Thu, 14 Mar 2024 14:31:28 +0800 |
| 4 | Subject: [PATCH 095/104] mtk: hostapd: using MLD addr as SA/BSSID for |
| 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 |
| 13 | index 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 | -- |
| 35 | 2.39.2 |
| 36 | |