diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-10-26 19:04:56 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-10-26 19:50:55 +0100 |
commit | 6729a9776aeffde08b11342dfc53e33873a33594 (patch) | |
tree | b7f79e60df52b63a5dbbf61b9856156e611479ab /src/sim/card_fs_tetra.c | |
parent | db2b52ee8477a0223114aeadc15c3bfe8c2ee1fd (diff) |
make sure to register DF.TELECOM and DF.GSM for SIM, USIM + TSIM
before we only did it partially, and by exporting data from sim,
rather than the new osim_int_cprof_add_{gsm,telecom}() functions.
Diffstat (limited to 'src/sim/card_fs_tetra.c')
-rw-r--r-- | src/sim/card_fs_tetra.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sim/card_fs_tetra.c b/src/sim/card_fs_tetra.c index e581875d..625adbd2 100644 --- a/src/sim/card_fs_tetra.c +++ b/src/sim/card_fs_tetra.c @@ -242,7 +242,8 @@ static const struct osim_file_desc sim_ef_in_tetra[] = { struct osim_card_profile *osim_cprof_tsim(void *ctx) { struct osim_card_profile *cprof; - struct osim_file_desc *mf, *tc; + struct osim_file_desc *mf; + int rc; cprof = talloc_zero(ctx, struct osim_card_profile); cprof->name = "TETRA SIM"; @@ -256,10 +257,11 @@ struct osim_card_profile *osim_cprof_tsim(void *ctx) add_df_with_ef(mf, 0x7F20, "DF.TETRA", sim_ef_in_tetra, ARRAY_SIZE(sim_ef_in_tetra)); - tc = add_df_with_ef(mf, 0x7F10, "DF.TELECOM", sim_ef_in_telecom, - sim_ef_in_telecom_num); - add_df_with_ef(tc, 0x5F50, "DF.GRAPHICS", sim_ef_in_graphics, - sim_ef_in_graphics_num); + rc = osim_int_cprof_add_telecom(mf); + if (rc != 0) { + talloc_free(cprof); + return NULL; + } return cprof; } |