Function esp_idf_svc::sys::esp_wifi_set_bandwidth

source ยท
pub unsafe extern "C" fn esp_wifi_set_bandwidth(
    ifx: u32,
    bw: u32,
) -> i32
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