blob: 0d3a4f1234ecf63ba107d808c0eb813efaed2e26 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From d66477d21526bd4aa8ba9cdc3f8223df15e64386 Mon Sep 17 00:00:00 2001
2From: Bo Jiao <Bo.Jiao@mediatek.com>
3Date: Wed, 10 Jul 2024 15:00:50 +0800
4Subject: [PATCH 116/126] mtk: hostapd: distribute the mgmt rx frame to bss
5 with same freq.
6
7there is no need to distribute the mgmt rx frame to all bss, we use
8mgmt->freq to filter.
9
10Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
11---
12 src/ap/drv_callbacks.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
16index 96b8e856e..7ae26ab7c 100644
17--- a/src/ap/drv_callbacks.c
18+++ b/src/ap/drv_callbacks.c
19@@ -1904,6 +1904,9 @@ static int hostapd_mgmt_rx(struct hostapd_data *hapd, struct rx_mgmt *rx_mgmt)
20 return 0;
21 }
22
23+ if (rx_mgmt->freq != 0 && rx_mgmt->freq != iface->freq)
24+ return 0;
25+
26 os_memset(&fi, 0, sizeof(fi));
27 fi.freq = rx_mgmt->freq;
28 fi.datarate = rx_mgmt->datarate;
29--
302.18.0
31