summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/sim.c b/src/sim.c
index 71fa1fc2..ffce13e1 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -589,70 +589,6 @@ const char *ofono_operator_name_sim_override(struct ofono_modem *modem,
return sim->pnn[opl_op->id - 1].longname;
}
-static void sim_pnn_read_cb(const struct ofono_error *error,
- const unsigned char *pnndata, int length, void *data)
-{
- struct ofono_modem *modem = data;
- struct sim_manager_data *sim = modem->sim_manager;
- struct opl_operator *oper;
-
- if (error->type != OFONO_ERROR_TYPE_NO_ERROR)
- goto skip;
-
- if (length < sim->pnn_size)
- goto skip;
-
- pnn_operator_parse(&sim->pnn[sim->pnn_current], pnndata, length);
-
-skip:
- sim->pnn_current ++;
- if (sim->pnn_current < sim->pnn_num)
- sim->ops->read_file_linear(modem, SIM_EFPNN_FILEID,
- sim->pnn_current,
- sim->pnn_size,
- sim_pnn_read_cb, modem);
- else
- /* All records retrieved */
- /* We now need EF-OPL if it's there for PNN to be
- * useful. */
- sim_retrieve_opl(modem);
-}
-
-static void sim_pnn_info_cb(const struct ofono_error *error, int length,
- enum ofono_sim_file_structure structure,
- int record_length, void *data)
-{
- struct ofono_modem *modem = data;
- struct sim_manager_data *sim = modem->sim_manager;
-
- if (error->type != OFONO_ERROR_TYPE_NO_ERROR || length < 3 ||
- record_length < 3 ||
- structure != OFONO_SIM_FILE_STRUCTURE_FIXED)
- /* If PNN is not present then OPL is not useful, don't
- * retrieve it. If OPL is not there then PNN[1] will
- * still be used for the HPLMN and/or EHPLMN, if PNN
- * is present. */
- return;
-
- sim->pnn_current = 0;
- sim->pnn_size = record_length;
- sim->pnn_num = length / record_length;
- sim->pnn = g_new0(struct pnn_operator, sim->pnn_num);
- sim->ops->read_file_linear(modem, SIM_EFPNN_FILEID, 0,
- record_length, sim_pnn_read_cb, modem);
-}
-
-static gboolean sim_retrieve_pnn(void *user_data)
-{
- struct ofono_modem *modem = user_data;
- struct sim_manager_data *sim = modem->sim_manager;
-
- sim->ops->read_file_info(modem, SIM_EFPNN_FILEID,
- sim_pnn_info_cb, modem);
-
- return FALSE;
-}
-
static void sim_ready(struct ofono_modem *modem)
{
ofono_sim_read(modem, SIM_EFMSISDN_FILEID, sim_msisdn_read_cb, NULL);