developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From 9b059de49d2c441ec3b83c82de3c4c6e0078f4f7 Mon Sep 17 00:00:00 2001 |
| 2 | From: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| 3 | Date: Wed, 15 May 2024 15:23:55 +0800 |
| 4 | Subject: [PATCH 087/126] mtk: hostapd: Fix Operating Mode Notification issue |
| 5 | in 2GHz |
| 6 | |
| 7 | If this patch is not applied, since the driver enables the |
| 8 | Operating Mode Notification feature, hostapd will enable the OMN bit |
| 9 | in the Extended Capabilities Element when constructing beacon. |
| 10 | However, this is not allowed on frequency bands that do not support |
| 11 | ieee80211ac, hence add this patch to fix this issue. |
| 12 | |
| 13 | Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| 14 | --- |
| 15 | src/ap/ieee802_11_shared.c | 5 +++++ |
| 16 | 1 file changed, 5 insertions(+) |
| 17 | |
| 18 | diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c |
| 19 | index 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 | -- |
| 35 | 2.18.0 |
| 36 | |