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

This commit is contained in:
David Cermak
2022-10-21 16:29:56 +02:00
parent ae30c509ef
commit d038a35e96
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