Skip to content
Commit 7ade471a authored by Marek Metelski's avatar Marek Metelski Committed by Carles Cufí
Browse files

drivers: gsm_ppp: Wait for NET_IF_DOWN in gsm_ppp_stop only if iface was up



Check if ppp iface was actually up before taking it down and waiting
for NET_EVENT_IF_DOWN. This allows to call gsm_ppp_stop() even if
the PPP was never started, which previously caused the call to lock
forever. This case is useful, for example, if the modem didn't attach
to network in desirable time and user wants to abort PPP setup.

Signed-off-by: default avatarMarek Metelski <marek@metelski.dev>
parent 6c162e04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment