Found 2 other functions taking a
wifi_bandwidths_t
argument:
Set the bandwidth of specified interface and specified band @attention 1. WIFI_BW_HT40 is supported only when the interface support 11N @attention 2. When the interface supports 11AX/11AC, it only supports setting WIFI_BW_HT20. @attention 3. When the WiFi band mode is set to 2.4G only, it will not set 5G bandwidth @attention 4. When the WiFi band mode is set to 5G only, it will not set 2.4G bandwidth
Get the bandwidth of specified interface and specified band @attention 1. The 5G bandwidth can only be read when CONFIG_SOC_WIFI_SUPPORT_5G is enabled. @attention 2. When the WiFi band mode is set to 2.4G only, it will not get 5G bandwidth @attention 3. When the WiFi band mode is set to 5G only, it will not get 2.4G bandwidth