aboutsummaryrefslogtreecommitdiff
path: root/src/mm-shared-qmi.h
diff options
context:
space:
mode:
authorTeijo Kinnunen <teijo.kinnunen@uros.com>2020-09-08 13:46:48 +0300
committerAleksander Morgado <aleksander@aleksander.es>2020-09-28 12:00:08 +0200
commit5285720c486762ffb40e0c561bafc29ea3678f98 (patch)
treedcd37c250331d475467b999c7d00d217d5a778d4 /src/mm-shared-qmi.h
parent0880bf3f9aa97ef6e2e4c5040f36d1d4411cb72b (diff)
shared-qmi: implement SIM/profile change detection
Implement eUICC change detection for QMI based modems using one of the following mechanisms (in order of preference): 1. If the modem supports "get slot status" operation, we monitor physical slot status indications from the modem for the active slot to detect when ICCID changes. 2. Use "refresh register all" to subscribe refresh indications when the eUICC triggers REFRESH operation following the enablement of a new profile. 3. Use "refresh register" to subscribe refresh indications (file path of EF_ICCID is used) in a similar way. This is used with older modems that do not support "refresh register all". If ICCID change is detected, the already existing SIM hot swap mechanism in MM is triggered.
Diffstat (limited to 'src/mm-shared-qmi.h')
-rw-r--r--src/mm-shared-qmi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mm-shared-qmi.h b/src/mm-shared-qmi.h
index 3b288187..9af00b9d 100644
--- a/src/mm-shared-qmi.h
+++ b/src/mm-shared-qmi.h
@@ -179,6 +179,12 @@ void mm_shared_qmi_set_primary_sim_slot (MMIfaceMode
gboolean mm_shared_qmi_set_primary_sim_slot_finish (MMIfaceModem *self,
GAsyncResult *res,
GError **error);
+void mm_shared_qmi_setup_sim_hot_swap (MMIfaceModem *self,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean mm_shared_qmi_setup_sim_hot_swap_finish (MMIfaceModem *self,
+ GAsyncResult *res,
+ GError **error);
/* Shared QMI location support */