fix(lwip): esp_netif supports esp_netif_get_netif_impl() for PPP

This commit is contained in:
David Cermak
2024-08-29 10:01:38 +02:00
parent 501a25f0c7
commit aa49e53d5b
2 changed files with 3 additions and 7 deletions
+1 -2
View File
@@ -493,8 +493,7 @@ esp_netif_t* esp_netif_get_handle_from_netif_impl(void *dev)
void* esp_netif_get_netif_impl(esp_netif_t *esp_netif)
{
// get impl ptr only for vanilla lwip impl (ppp_pcb not supported)
if (esp_netif && !ESP_NETIF_IS_POINT2POINT_TYPE(esp_netif, PPP_LWIP_NETIF)) {
if (esp_netif) {
return esp_netif->lwip_netif;
}
return NULL;