mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
b52e796654
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user