]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EHT: Fix HE center frequency for EHT 320 MHz with puncturing
authorGovindaraj Saminathan <quic_gsaminat@quicinc.com>
Mon, 9 Dec 2024 05:57:34 +0000 (11:27 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 12 Dec 2024 10:20:40 +0000 (12:20 +0200)
Currently, oper_chwidth holds 320 MHz and he_oper_centr_freq_seg0_idx
holds the center frequency of the primary 160 MHz, causing the
calculation of the wrong seg0 from punct_update_legacy_bw() and
leading to connectivity issues with HE STA.

Start with the HE operating bandwidth instead of EHT operating bandwidth
to calculate seg0 to update the correct center frequency in HE Operation
element.

Signed-off-by: Govindaraj Saminathan <quic_gsaminat@quicinc.com>
src/ap/ieee802_11_he.c

index a2deda6c47186ec3e085c47e9f7943fd5d1ed726..cd9f8bc595140aeaf89eecefe6ddf514e043900c 100644 (file)
@@ -221,7 +221,7 @@ u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid)
 
        if (is_6ghz_op_class(hapd->iconf->op_class)) {
                enum oper_chan_width oper_chwidth =
-                       hostapd_get_oper_chwidth(hapd->iconf);
+                       hapd->iconf->he_oper_chwidth;
                u8 seg0 = hapd->iconf->he_oper_centr_freq_seg0_idx;
                u8 seg1 = hostapd_get_oper_centr_freq_seg1_idx(hapd->iconf);
                u8 control;