]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Fix channel bandwidth configuration for mesh on 6 GHz
authorSuraj P Kizhakkethil <quic_surapk@quicinc.com>
Thu, 10 Apr 2025 11:11:23 +0000 (16:41 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 11 Apr 2025 09:56:26 +0000 (12:56 +0300)
Currently, when mesh interface is configured in 80 MHz, the interface is
coming up in 320 MHz bandwidth if the driver supports 320 MHz bandwidth.
Fix this by selecting the correct bandwidth based on max_oper_chwidth
configuration parameter.

Signed-off-by: Suraj P Kizhakkethil <quic_surapk@quicinc.com>
wpa_supplicant/wpa_supplicant.c

index 9f4d452c43086c0084bfe0bcf9fd544eead730b4..4c15375874149d6edd52e429263998c425969946 100644 (file)
@@ -3306,6 +3306,7 @@ static bool ibss_mesh_select_80_160mhz(struct wpa_supplicant *wpa_s,
        if ((mode->eht_capab[ieee80211_mode].phy_cap[
                     EHT_PHYCAP_320MHZ_IN_6GHZ_SUPPORT_IDX] &
             EHT_PHYCAP_320MHZ_IN_6GHZ_SUPPORT_MASK) && is_6ghz &&
+           ssid->max_oper_chwidth == CONF_OPER_CHWIDTH_320MHZ &&
            ibss_mesh_is_80mhz_avail(channel + 16, mode) &&
            ibss_mesh_is_80mhz_avail(channel + 32, mode) &&
            ibss_mesh_is_80mhz_avail(channel + 48, mode)) {