Found 2 other functions taking a
wifi_protocols_t
argument:
Set the supported WiFi protocols for the specified interface. @attention 1. When the WiFi band mode is set to 2.4G only, it will not set 5G protocol @attention 2. When the WiFi band mode is set to 5G only, it will not set 2.4G protocol @attention 3. This API supports setting the maximum protocol. For example, if the 2.4G protocol is set to 802.11n, it will automatically configure to 802.11b/g/n.
Get the current protocol of the specified interface and specified band @attention 1. The 5G protocol 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 protocol @attention 3. When the WiFi band mode is set to 5G only, it will not get 2.4G protocol