-
Notifications
You must be signed in to change notification settings - Fork 8.4k
modem_cellular: Add dormant state to support network loss #89820
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
modem_cellular: Add dormant state to support network loss #89820
Conversation
When PPP net_if is changed to dormant, the PPP connection is terminated asynchronously. This is used so that the driver can terminate the PPP connection gracefully. Note: net_if_down() is not used as it would require synchronous operation which would block the system workqueue thus causing deadlock. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
pdgendt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of indentation nits
Previously, it was expected that the modem would immediately disconnect and close the PPP link, when the network was lost (+CEREG: 4 is received). Failure to do so, would result in modem attempting to chat with dlci2 channel, where as cellular modem driver would drop to dlci1. This would show as dial script timing out, which would freeze cellular modem driver. Adding dormant state enables graceful disconnection of PPP-link when the network is lost. This allows the modems which do not automatically close with network link loss to close based on PPP link closure. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
ec6bf18
7dda543 to
ec6bf18
Compare
|
|
I think you accidentally removed the body of the |



Previously, it was expected that the modem would immediately disconnect and close the PPP link, when the network was lost
(+CEREG: 4 is received). Failure to do so, would result in modem attempting to chat with dlci2 channel, where as cellular
modem driver would drop to dlci1. This would show as dial script timing out, which would freeze cellular modem driver.
Adding dormant state enables graceful disconnection of PPP-link when the network is lost. This allows the modems which do
not automatically close with network link loss to close based on PPP link closure.