aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-03-26 16:40:54 +0100
committerDan Williams <dcbw@redhat.com>2013-03-27 08:27:30 -0500
commitb377a62377db46c2cdb2b3b8f6f4166f7d2a3dcc (patch)
tree587a7a16d4a569af98eb8079adcecae3b360f827 /src/mm-iface-modem.c
parent7f1bea5fbf9ea25eeebb320e476d56ece44f276e (diff)
iface-modem: never try to create a SIM in a CDMA-only modem
CDMA modems without LTE capabilities will usually not have a SIM, so just skip loading a SIM object if so. https://bugzilla.gnome.org/show_bug.cgi?id=696582
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r--src/mm-iface-modem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 4fbba487..b36947f6 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -3961,8 +3961,10 @@ interface_initialization_step (InitializationContext *ctx)
ctx->step++;
case INITIALIZATION_STEP_SIM:
- /* If the modem doesn't need any SIM, skip */
- if (MM_IFACE_MODEM_GET_INTERFACE (ctx->self)->create_sim &&
+ /* If the modem doesn't need any SIM (not implemented by plugin, or not
+ * needed in CDMA-only modems) */
+ if (!mm_iface_modem_is_cdma_only (ctx->self) &&
+ MM_IFACE_MODEM_GET_INTERFACE (ctx->self)->create_sim &&
MM_IFACE_MODEM_GET_INTERFACE (ctx->self)->create_sim_finish) {
MMSim *sim = NULL;