Skip to content

Commit 28e4012

Browse files
MarkusLassilakartben
authored andcommitted
modem_cellular: Close carrier with suspend
Fix regression introduced by dormant state, where the carrier does not get closed when Cellular Modem driver is suspended. Signed-off-by: Markus Lassila <[email protected]>
1 parent 68f8c1b commit 28e4012

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/modem/modem_cellular.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,9 @@ static void modem_cellular_carrier_on_event_handler(struct modem_cellular_data *
11231123
break;
11241124

11251125
case MODEM_CELLULAR_EVENT_SUSPEND:
1126+
net_if_carrier_off(modem_ppp_get_iface(data->ppp));
1127+
modem_chat_release(&data->chat);
1128+
modem_ppp_release(data->ppp);
11261129
modem_cellular_enter_state(data, MODEM_CELLULAR_STATE_INIT_POWER_OFF);
11271130
break;
11281131

0 commit comments

Comments
 (0)