mirror of git://git.sysmocom.de/ofono
Set phase to unknown until we probe it
This commit is contained in:
parent
beb3e032e4
commit
45f2f9315f
|
@ -62,6 +62,7 @@ enum ofono_sim_phase {
|
||||||
OFONO_SIM_PHASE_2G,
|
OFONO_SIM_PHASE_2G,
|
||||||
OFONO_SIM_PHASE_2G_PLUS,
|
OFONO_SIM_PHASE_2G_PLUS,
|
||||||
OFONO_SIM_PHASE_3G,
|
OFONO_SIM_PHASE_3G,
|
||||||
|
OFONO_SIM_PHASE_UNKNOWN,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error,
|
typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error,
|
||||||
|
|
|
@ -1899,6 +1899,7 @@ struct ofono_sim *ofono_sim_create(struct ofono_modem *modem,
|
||||||
if (sim == NULL)
|
if (sim == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
sim->phase = OFONO_SIM_PHASE_UNKNOWN;
|
||||||
sim->atom = __ofono_modem_add_atom(modem, OFONO_ATOM_TYPE_SIM,
|
sim->atom = __ofono_modem_add_atom(modem, OFONO_ATOM_TYPE_SIM,
|
||||||
sim_remove, sim);
|
sim_remove, sim);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue