summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sim.c b/src/sim.c
index 0daf586f..ab48b784 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -386,7 +386,12 @@ static void sim_op_info_cb(const struct ofono_error *error, int length,
op->structure = structure;
op->length = length;
- op->record_length = record_length;
+
+ if (structure == OFONO_SIM_FILE_STRUCTURE_TRANSPARENT)
+ op->record_length = length;
+ else
+ op->record_length = record_length;
+
op->current = 1;
g_timeout_add(0, sim_op_retrieve_next, modem);