blob: e637185f3092e2568254cd629aa931012f78d0aa [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From 9b059de49d2c441ec3b83c82de3c4c6e0078f4f7 Mon Sep 17 00:00:00 2001
2From: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
3Date: Wed, 15 May 2024 15:23:55 +0800
4Subject: [PATCH 087/126] mtk: hostapd: Fix Operating Mode Notification issue
5 in 2GHz
6
7If this patch is not applied, since the driver enables the
8Operating Mode Notification feature, hostapd will enable the OMN bit
9in the Extended Capabilities Element when constructing beacon.
10However, this is not allowed on frequency bands that do not support
11ieee80211ac, hence add this patch to fix this issue.
12
13Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
14---
15 src/ap/ieee802_11_shared.c | 5 +++++
16 1 file changed, 5 insertions(+)
17
18diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c
19index 3dd3a6a77..58283eae9 100644
20--- a/src/ap/ieee802_11_shared.c
21+++ b/src/ap/ieee802_11_shared.c
22@@ -510,6 +510,11 @@ u8 * hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid,
23 *pos &= ~0x08;
24 if (i == 2 && !hapd->iconf->mbssid)
25 *pos &= ~0x40;
26+
27+ /* Clear bits 62 (Operating Mode Notification)
28+ * if ieee80211ac is not enabled (mainly 2.4G and 6G) */
29+ if (i == 7 && !hapd->iconf->ieee80211ac)
30+ *pos &= ~0x40;
31 }
32
33 while (len > 0 && eid[1 + len] == 0) {
34--
352.18.0
36