Function esp_idf_sys::esp_wifi_set_bandwidth

source ยท
pub unsafe extern "C" fn esp_wifi_set_bandwidth(
    ifx: wifi_interface_t,
    bw: wifi_bandwidth_t,
) -> esp_err_t
Expand description

@brief Set the bandwidth of specified interface

@attention 1. API return false if try to configure an interface that is not enabled @attention 2. WIFI_BW_HT40 is supported only when the interface support 11N

@param ifx interface to be configured @param bw bandwidth

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
  • ESP_ERR_WIFI_IF: invalid interface
  • ESP_ERR_INVALID_ARG: invalid argument
  • others: refer to error codes in esp_err.h