Set phase to unknown until we probe it

This commit is contained in:
Denis Kenzior 2010-01-06 14:17:27 -06:00
parent beb3e032e4
commit 45f2f9315f
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ enum ofono_sim_phase {
OFONO_SIM_PHASE_2G,
OFONO_SIM_PHASE_2G_PLUS,
OFONO_SIM_PHASE_3G,
OFONO_SIM_PHASE_UNKNOWN,
};
typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error,

View File

@ -1899,6 +1899,7 @@ struct ofono_sim *ofono_sim_create(struct ofono_modem *modem,
if (sim == NULL)
return NULL;
sim->phase = OFONO_SIM_PHASE_UNKNOWN;
sim->atom = __ofono_modem_add_atom(modem, OFONO_ATOM_TYPE_SIM,
sim_remove, sim);