Skip to content

Commit d963b1b

Browse files
committed
[nrf fromlist] modem: cellular: Delay redialing when PPP dies
When network is temporary lost, we might receive PPP_DEAD event just before parsing "+CEREG: ..." Therefore immediately redialing might lead to out-of-sync states. Delay the redial script by the PERIODIC_SCRIPT_TIMEOUT as any other script failures do. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no> Upstream PR #: 108986
1 parent fefe591 commit d963b1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/modem/modem_cellular.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ static void modem_cellular_registered_event_handler(struct modem_cellular_data *
14541454
case MODEM_CELLULAR_EVENT_PPP_DEAD:
14551455
if (net_if_is_admin_up(modem_ppp_get_iface(data->ppp))) {
14561456
modem_cellular_enter_state(data, MODEM_CELLULAR_STATE_AWAIT_PPP_DEAD);
1457-
modem_cellular_enter_state(data, MODEM_CELLULAR_STATE_RUN_DIAL_SCRIPT);
1457+
modem_cellular_start_timer(data, MODEM_CELLULAR_PERIODIC_SCRIPT_TIMEOUT);
14581458
}
14591459
break;
14601460

0 commit comments

Comments
 (0)