blob: 0dd281b1e9f3512ec77455539e48ccc0479fccbc [file] [log] [blame]
From b039d88e5924a340709646c5e855bc06fcb1da78 Mon Sep 17 00:00:00 2001
From: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
Date: Thu, 4 Jul 2024 13:37:23 +0800
Subject: [PATCH 111/126] mtk: hostapd: Fix the op_class value in the RNR IE to
achieve backward compatibility
According to the chapter 11.49 Reduced neighbor report
of DraftP802.11be_D5.1, the AP should select (one of) the operating
class(es) that is expected to be understood by all STAs that might
intend to connect to the reported AP, even if the channel spacing of
that operating class is less than the BSS bandwidth of all the reported
APs in the Neighbor AP Information field.
For example, if an AP reports an EHT AP that is operating a BSS with 320
MHz bandwidth in 6 GHz band using operating class 137, it is recommended
that the operating class selected by the AP in the Reduced Neighbor Report
element is operating class 131, 132, 133 or 134, since these are expected
to be understood by all STAs that can connect to the reported 6GHz AP.
Signed-off-by: Evelyn Tsai <evelyn.tsai@mediatek.com>
Signed-off-by: Money Wang <money.wang@mediatek.com>
Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
---
src/ap/ieee802_11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 62fdfb288..75ffb2a18 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -7841,7 +7841,7 @@ static bool hostapd_eid_rnr_bss(struct hostapd_data *hapd,
* one TBTT info available. */
*tbtt_count_pos = eid++;
*eid++ = tbtt_info_len;
- *eid++ = op_class;
+ *eid++ = (op_class == 137 ? 134 : op_class);
*eid++ = bss->iconf->channel;
*len += RNR_TBTT_HEADER_LEN;
}
--
2.18.0