-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ppp interface is UP after calling esp_netif_new() (IDFGH-3044) #5069
Comments
add @david-cermak |
If add checking netif_is_link_up() in esp_netif_is_netif_up(), the result looks fine. see espressif/esp-lwip@3ca5184 |
Hi @AxelLin Thanks for reporting this issue and posting the hint on ppp netif status. |
I fixed it by below changes: |
Module or chip used: ESP32-WROOM-32
IDF version: v4.2-dev-1034-ge599b794bebe
Build System: CMake
Compiler version: xtensa-esp32-elf-gcc (crosstool-NG esp-2020r1) 8.2.0
Operating System: Linux
Power Supply: USB
With below code, the esp_netif_is_netif_up() returns true.
This looks wrong to me because the modem is not yet dial-up and it even not yet init the modem.
For comparison, in STA and AP cases, after calling esp_netif_create_default_wifi_sta() or esp_netif_create_default_wifi_ap()
the interface is still DOWN.
The problem is when PPP is consider UP, the route algorithm will select it as default route.
But there could be some reason the application doesn't call dial-up immediately or never calls dial-up because sim card is not properly inserted.
The text was updated successfully, but these errors were encountered: