From: Suraj P Kizhakkethil Date: Thu, 10 Apr 2025 11:11:23 +0000 (+0530) Subject: mesh: Fix channel bandwidth configuration for mesh on 6 GHz X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e0d40539e672259974a843ae9937f16d3959b3;p=thirdparty%2Fhostap.git mesh: Fix channel bandwidth configuration for mesh on 6 GHz 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 --- diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 9f4d452c4..4c1537587 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -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)) {