Merge branch 'bugfix/wifi_netif_const_correct' into 'master'

esp-wifi/netif: Made esp_netif_create_wifi() const correct

Closes IDFGH-8500

See merge request espressif/esp-idf!20745
This commit is contained in:
David Čermák 2022-10-31 21:31:30 +08:00
commit b52e796654
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ void esp_netif_destroy_default_wifi(void *esp_netif);
*
* @return pointer to esp-netif instance
*/
esp_netif_t* esp_netif_create_wifi(wifi_interface_t wifi_if, esp_netif_inherent_config_t *esp_netif_config);
esp_netif_t* esp_netif_create_wifi(wifi_interface_t wifi_if, const esp_netif_inherent_config_t *esp_netif_config);
/**
* @brief Creates default STA and AP network interfaces for esp-mesh.

View File

@ -350,7 +350,7 @@ void esp_netif_destroy_default_wifi(void *esp_netif)
/**
* @brief User init custom wifi interface
*/
esp_netif_t* esp_netif_create_wifi(wifi_interface_t wifi_if, esp_netif_inherent_config_t *esp_netif_config)
esp_netif_t* esp_netif_create_wifi(wifi_interface_t wifi_if, const esp_netif_inherent_config_t *esp_netif_config)
{
esp_netif_config_t cfg = {
.base = esp_netif_config