mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp-netif: wifi-deinit to clear handlers only in tcpip-adapter mode
This commit is contained in:
parent
1183b95cc4
commit
95b5ef3687
@ -178,7 +178,12 @@ esp_err_t tcpip_adapter_set_default_wifi_handlers(void)
|
||||
|
||||
esp_err_t tcpip_adapter_clear_default_wifi_handlers(void)
|
||||
{
|
||||
return _esp_wifi_clear_default_wifi_handlers();
|
||||
if (s_tcpip_adapter_compat) {
|
||||
// Clear default handlers only if tcpip-adapter mode used
|
||||
return _esp_wifi_clear_default_wifi_handlers();
|
||||
}
|
||||
// No action if tcpip-adapter compatibility enabled, but interfaces created/configured with esp-netif
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
tcpip_adapter_if_t tcpip_adapter_if_from_esp_netif(esp_netif_t *esp_netif)
|
||||
|
Loading…
x
Reference in New Issue
Block a user