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