From 5adda62912d072e815507c94d5dc498cf083695a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 4 Sep 2023 17:26:41 +0000 Subject: iface-modem-3gpp: ignore UNKNOWN ps state explicitly during wait operation --- src/mm-iface-modem-3gpp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c index 9fd376fd..7bb216dc 100644 --- a/src/mm-iface-modem-3gpp.c +++ b/src/mm-iface-modem-3gpp.c @@ -244,12 +244,15 @@ packet_service_state_changed (MMIfaceModem3gpp *self, MM_IFACE_MODEM_3GPP_PACKET_SERVICE_STATE, &state, NULL); + /* Ignore unknown state explicitly during a wait operation */ + if (state == MM_MODEM_3GPP_PACKET_SERVICE_STATE_UNKNOWN) + return; + ctx = g_task_get_task_data (task); /* If we want a specific final state and this is not the one we were * looking for, then skip */ if ((ctx->final_state != MM_MODEM_3GPP_PACKET_SERVICE_STATE_UNKNOWN) && - (state != MM_MODEM_3GPP_PACKET_SERVICE_STATE_UNKNOWN) && (state != ctx->final_state)) return; -- cgit v1.2.3-70-g09d2