pub unsafe extern "C" fn esp_wifi_set_protocols(
ifx: u32,
protocols: *mut wifi_protocols_t,
) -> i32Expand description
@brief 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.
@param ifx interface @param protocols WiFi protocols include 2.4G protocol and 5G protocol
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
- ESP_ERR_WIFI_IF: invalid interface
- others: refer to error codes in esp_err.h