Skip to content

Commit

Permalink
Merge branch 'bugfix/wifi_netif_const_correct' into 'master'
Browse files Browse the repository at this point in the history
esp-wifi/netif: Made esp_netif_create_wifi() const correct

Closes IDFGH-8500

See merge request espressif/esp-idf!20745
  • Loading branch information
david-cermak committed Oct 31, 2022
2 parents bf9e5a1 + d038a35 commit b52e796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/esp_wifi/include/esp_wifi_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion components/esp_wifi/src/wifi_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b52e796

Please sign in to comment.