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:
@@ -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,6 +7874,7 @@ initialize_step (InitializeContext *ctx)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case INITIALIZE_STEP_IFACE_SIMPLE:
|
case INITIALIZE_STEP_IFACE_SIMPLE:
|
||||||
|
if (ctx->self->priv->modem_state != MM_MODEM_STATE_FAILED)
|
||||||
mm_iface_modem_simple_initialize (MM_IFACE_MODEM_SIMPLE (ctx->self));
|
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++;
|
||||||
|
Reference in New Issue
Block a user