]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EHT: Fix HE Channel Center Freq Seg0/Seg1 for 6 GHz 320 MHz cases
authorJurijs Soloveckis <jsoloveckis@maxlinear.com>
Wed, 15 Nov 2023 08:48:05 +0000 (08:48 +0000)
committerJouni Malinen <j@w1.fi>
Fri, 24 Nov 2023 16:38:32 +0000 (18:38 +0200)
Fix for the HE Channel Center Freq Seg0/Seg1 within the HE 6GHz
Operation Information field. As downgrade of bandwidths for VHT and HE
when using puncturing is TODO for 320 MHz and/or if puncturing is
disabled and bandwidth is 320 MHz, the same rules as for 160 MHz should
be applied for Channel Center Freq Seg0/Seg1 within 6 GHz Operation
Information field.

Signed-off-by: Jurijs Soloveckis <jsoloveckis@maxlinear.com>
src/ap/ieee802_11_he.c

index 548a44821fb8dd29ce1dfb9a517f3a25ecb58fe0..f308a6daf0b851bd6414b1f286442b264983a165 100644 (file)
@@ -263,7 +263,8 @@ u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid)
                *pos++ = control;
 
                /* Channel Center Freq Seg0/Seg1 */
-               if (oper_chwidth == 2) {
+               if (oper_chwidth == CONF_OPER_CHWIDTH_160MHZ ||
+                   oper_chwidth == CONF_OPER_CHWIDTH_320MHZ) {
                        /*
                         * Seg 0 indicates the channel center frequency index of
                         * the 160 MHz channel.