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