mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
esp_netif and examples: using wifi driver handle, update examples and tests to pass the CI
This commit is contained in:
@@ -71,7 +71,7 @@ esp_netif_t* esp_netif_create_default_wifi_ap(void)
|
||||
esp_netif_config_t cfg = ESP_NETIF_DEFAULT_WIFI_AP();
|
||||
esp_netif_t *netif = esp_netif_new(&cfg);
|
||||
assert(netif);
|
||||
esp_wifi_set_default_wifi_ap_handlers(netif);
|
||||
esp_wifi_set_default_wifi_driver_and_handlers(ESP_IF_WIFI_AP, netif);
|
||||
return netif;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ esp_netif_t* esp_netif_create_default_wifi_sta(void)
|
||||
esp_netif_config_t cfg = ESP_NETIF_DEFAULT_WIFI_STA();
|
||||
esp_netif_t *netif = esp_netif_new(&cfg);
|
||||
assert(netif);
|
||||
esp_wifi_set_default_wifi_sta_handlers(netif);
|
||||
esp_wifi_set_default_wifi_driver_and_handlers(ESP_IF_WIFI_STA, netif);
|
||||
return netif;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user