From beb3e032e43b1095dab3d3aa4ec6c75cd8481b67 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 6 Jan 2010 13:19:47 -0600 Subject: Refactor: Preserve Phase obtained from the SIM --- src/sim.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/sim.c b/src/sim.c index d85a5c6f..087cecd8 100644 --- a/src/sim.c +++ b/src/sim.c @@ -1226,11 +1226,9 @@ static void sim_efphase_read_cb(const struct ofono_error *error, struct ofono_sim *sim = user; if (!error || error->type != OFONO_ERROR_TYPE_NO_ERROR || len != 1) - sim->phase = OFONO_SIM_PHASE_G3; - else if (data[0] != 0x00) - sim->phase = OFONO_SIM_PHASE_G2; + sim->phase = OFONO_SIM_PHASE_3G; else - sim->phase = OFONO_SIM_PHASE_G1; + sim->phase = data[0]; /* Proceed with SIM initialization */ sim_retrieve_efli_and_efpl(sim); -- cgit v1.2.3