developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 1 | From f9b54baaa5037a174963b2dc255a16e60a9cade8 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: Tue, 27 Feb 2024 15:04:35 +0800 |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 4 | Subject: [PATCH 072/126] mtk: hostapd: specify link id for unicast DEAUTH |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 5 | |
| 6 | When deauthenticating the STA, hostapd should specifies the setup link |
| 7 | of the target STA so that the TX status of the DEAUTH can be forwarded |
| 8 | to the correct link (BSS). |
| 9 | |
| 10 | (The original gerrit somehow disappears, so I commit it again) |
| 11 | (https://gerrit.mediatek.inc/c/gateway/WiFi7/mac80211/hostapd/+/8715613) |
| 12 | |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 13 | Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 14 | --- |
| 15 | src/ap/ap_drv_ops.c | 6 +++++- |
| 16 | 1 file changed, 5 insertions(+), 1 deletion(-) |
| 17 | |
| 18 | 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] | 19 | index f51d5be8e..34c2ff211 100644 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 20 | --- a/src/ap/ap_drv_ops.c |
| 21 | +++ b/src/ap/ap_drv_ops.c |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 22 | @@ -896,7 +896,11 @@ int hostapd_drv_sta_deauth(struct hostapd_data *hapd, |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 23 | if (hapd->conf->mld_ap) { |
| 24 | struct sta_info *sta = ap_get_sta(hapd, addr); |
| 25 | |
| 26 | - link_id = hapd->mld_link_id; |
| 27 | + if (sta) |
| 28 | + link_id = sta->mld_assoc_link_id; |
| 29 | + else |
| 30 | + link_id = hapd->mld_link_id; |
| 31 | + |
| 32 | if (ap_sta_is_mld(hapd, sta)) |
| 33 | own_addr = hapd->mld->mld_addr; |
| 34 | } |
| 35 | -- |
developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame] | 36 | 2.18.0 |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 37 | |