mm-broadband-modem-mbim: treat "status error = `NotInitialized'" the same way as "ReadyState = 'sim-not-initialized'"

This commit is contained in:
Nagi Marupaka
2023-09-18 16:52:24 +00:00
parent 8cd1c1bdb9
commit 20a95cf428

View File

@@ -1633,6 +1633,11 @@ unlock_required_subscriber_ready_state_ready (MbimDevice *device,
mm_obj_dbg (self, "processed subscriber ready status response");
}
if (g_error_matches (error, MBIM_STATUS_ERROR, MBIM_STATUS_ERROR_NOT_INITIALIZED)) {
g_clear_error (&error);
ready_state = MBIM_SUBSCRIBER_READY_STATE_NOT_INITIALIZED;
}
if (!error) {
/* Store last valid status loaded */
self->priv->enabled_cache.last_ready_state = ready_state;