broadband-modem: launch the Firmware interface even on fatal errors

Even when there is a fatal error during initialization (e.g. missing PIN in a
3GPP modem), we should allow operations on the Firmware interface.
This commit is contained in:
Aleksander Morgado
2013-01-07 22:19:02 +01:00
parent e939221975
commit 959bb9d2ff

View File

@@ -7678,8 +7678,9 @@ iface_modem_initialize_ready (MMBroadbandModem *self,
MM_MODEM_STATE_FAILED, MM_MODEM_STATE_FAILED,
MM_MODEM_STATE_CHANGE_REASON_UNKNOWN); MM_MODEM_STATE_CHANGE_REASON_UNKNOWN);
/* Just jump to the last step */ /* Jump to the firmware step. We allow firmware switching even in failed
ctx->step = INITIALIZE_STEP_LAST; * state */
ctx->step = INITIALIZE_STEP_IFACE_FIRMWARE;
initialize_step (ctx); initialize_step (ctx);
return; return;
} }
@@ -7873,7 +7874,8 @@ initialize_step (InitializeContext *ctx)
return; return;
case INITIALIZE_STEP_IFACE_SIMPLE: case INITIALIZE_STEP_IFACE_SIMPLE:
mm_iface_modem_simple_initialize (MM_IFACE_MODEM_SIMPLE (ctx->self)); if (ctx->self->priv->modem_state != MM_MODEM_STATE_FAILED)
mm_iface_modem_simple_initialize (MM_IFACE_MODEM_SIMPLE (ctx->self));
/* Fall down to next step */ /* Fall down to next step */
ctx->step++; ctx->step++;