Skip to content

Commit 64d0ea3

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 8998cd3 commit 64d0ea3

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
@@ -1446,7 +1446,7 @@ static void modem_cellular_registered_event_handler(struct modem_cellular_data *
14461446
case MODEM_CELLULAR_EVENT_PPP_DEAD:
14471447
if (net_if_is_admin_up(modem_ppp_get_iface(data->ppp))) {
14481448
modem_cellular_enter_state(data, MODEM_CELLULAR_STATE_AWAIT_PPP_DEAD);
1449-
modem_cellular_enter_state(data, MODEM_CELLULAR_STATE_RUN_DIAL_SCRIPT);
1449+
modem_cellular_start_timer(data, MODEM_CELLULAR_PERIODIC_SCRIPT_TIMEOUT);
14501450
}
14511451
break;
14521452

0 commit comments

Comments
 (0)