developer | 05f3b2b | 2024-08-19 19:17:34 +0800 | [diff] [blame^] | 1 | From b039d88e5924a340709646c5e855bc06fcb1da78 Mon Sep 17 00:00:00 2001 |
| 2 | From: MeiChia Chiu <MeiChia.Chiu@mediatek.com> |
| 3 | Date: Thu, 4 Jul 2024 13:37:23 +0800 |
| 4 | Subject: [PATCH 111/126] mtk: hostapd: Fix the op_class value in the RNR IE to |
| 5 | achieve backward compatibility |
| 6 | |
| 7 | According to the chapter 11.49 Reduced neighbor report |
| 8 | of DraftP802.11be_D5.1, the AP should select (one of) the operating |
| 9 | class(es) that is expected to be understood by all STAs that might |
| 10 | intend to connect to the reported AP, even if the channel spacing of |
| 11 | that operating class is less than the BSS bandwidth of all the reported |
| 12 | APs in the Neighbor AP Information field. |
| 13 | |
| 14 | For example, if an AP reports an EHT AP that is operating a BSS with 320 |
| 15 | MHz bandwidth in 6 GHz band using operating class 137, it is recommended |
| 16 | that the operating class selected by the AP in the Reduced Neighbor Report |
| 17 | element is operating class 131, 132, 133 or 134, since these are expected |
| 18 | to be understood by all STAs that can connect to the reported 6GHz AP. |
| 19 | |
| 20 | Signed-off-by: Evelyn Tsai <evelyn.tsai@mediatek.com> |
| 21 | Signed-off-by: Money Wang <money.wang@mediatek.com> |
| 22 | Signed-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 | |
| 27 | diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c |
| 28 | index 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 | -- |
| 41 | 2.18.0 |
| 42 | |