Skip to content
Commit 4855e8de authored by Sjors Hettinga's avatar Sjors Hettinga Committed by Carles Cufí
Browse files

net: ppp: Properly terminate LCP state at modem side when closing down



Takes the modem state machine by calling lcp_close instead of lcp_down
Using this method the LCP layer sends a TERMINATE_REQ to the modem and the
network interface is only taken down when the LCP layer has properly
finished.
Moved the ppp_mgmt_raise_carrier_off_event and net_if_carrier_down
to lcp.c to avoid breaking the interface.
Tested on a real modem.

Fixes: zephyrproject-rtos#41627

Signed-off-by: default avatarSjors Hettinga <s.a.hettinga@gmail.com>
parent ae9380d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment