aboutsummaryrefslogtreecommitdiff
path: root/src/mm-sim-qmi.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@google.com>2022-08-03 15:03:20 +0000
committerAleksander Morgado <aleksander@aleksander.es>2022-08-19 15:53:43 +0000
commit442c722d48a7dac3bb5ed48bf255b19eb4785dcb (patch)
tree5f6abc56d64059ab3a281ab90942fb2b94523389 /src/mm-sim-qmi.c
parentf61061044be0644a9f19be3b138b5bd58b234059 (diff)
sim-qmi: define common SIM file paths for MF and ADF
Diffstat (limited to 'src/mm-sim-qmi.c')
-rw-r--r--src/mm-sim-qmi.c15
1 files changed, 7 insertions, 8 deletions
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);
}