aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2023-09-04 17:26:41 +0000
committerAleksander Morgado <aleksander@aleksander.es>2023-09-11 19:39:59 +0000
commit5adda62912d072e815507c94d5dc498cf083695a (patch)
tree9c04fd3e00421e2ff2f138e4c773332c643989eb
parentfb66cc26beaa8ee4b48040ea938043bb5919b273 (diff)
iface-modem-3gpp: ignore UNKNOWN ps state explicitly during wait operation
-rw-r--r--src/mm-iface-modem-3gpp.c5
1 files changed, 4 insertions, 1 deletions
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;