Skip to content

Commit 20a8bc1

Browse files
committed
app: Configure dormant states of PPP interface
Upstream Zephyr does not automatically set dormant state OFF. Prepare for the change by toggling it manually. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
1 parent 5630e66 commit 20a8bc1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/sm_ppp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ static int ppp_start(void)
367367
modem_ppp_attach(&ppp_module, ppp_pipe);
368368

369369
net_if_carrier_on(ppp_iface);
370+
net_if_dormant_off(ppp_iface);
370371

371372
ppp_state = PPP_STATE_RUNNING;
372373

@@ -433,6 +434,7 @@ static int ppp_stop(enum ppp_reason reason)
433434
}
434435

435436
net_if_carrier_off(ppp_iface);
437+
net_if_dormant_on(ppp_iface);
436438

437439
close_ppp_sockets();
438440

0 commit comments

Comments
 (0)