From 442c722d48a7dac3bb5ed48bf255b19eb4785dcb Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 3 Aug 2022 15:03:20 +0000 Subject: sim-qmi: define common SIM file paths for MF and ADF --- src/mm-sim-qmi.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/mm-sim-qmi.c') diff --git a/src/mm-sim-qmi.c b/src/mm-sim-qmi.c index 7cf14ba5..e11c3b81 100644 --- a/src/mm-sim-qmi.c +++ b/src/mm-sim-qmi.c @@ -45,6 +45,9 @@ struct _MMSimQmiPrivate { gboolean dms_uim_deprecated; }; +static const guint16 mf_file_path[] = { 0x3F00 }; +static const guint16 adf_file_path[] = { 0x3F00, 0x7FFF }; + /*****************************************************************************/ static gboolean @@ -355,12 +358,10 @@ static void uim_get_iccid (MMSimQmi *self, GTask *task) { - static const guint16 file_path[] = { 0x3F00 }; - uim_read (self, 0x2FE2, - file_path, - G_N_ELEMENTS (file_path), + mf_file_path, + G_N_ELEMENTS (mf_file_path), (GAsyncReadyCallback)uim_get_iccid_ready, task); } @@ -481,12 +482,10 @@ static void uim_get_imsi (MMSimQmi *self, GTask *task) { - static const guint16 file_path[] = { 0x3F00, 0x7FFF }; - uim_read (self, 0x6F07, - file_path, - G_N_ELEMENTS (file_path), + adf_file_path, + G_N_ELEMENTS (adf_file_path), (GAsyncReadyCallback)uim_get_imsi_ready, task); } -- cgit v1.2.3-70-g09d2