diff options
author | Teijo Kinnunen <teijo.kinnunen@uros.com> | 2020-04-16 13:16:28 +0300 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-04-17 07:45:47 +0000 |
commit | d98597e4302983f2b12f2f70759015044c12ecf6 (patch) | |
tree | 266bd180f1f856019756392a16cc18f4db597bca /plugins/quectel/mm-shared-quectel.h | |
parent | 1802bd07ac82faab9f0b196a92a69784f386daa1 (diff) |
quectel: Check SIM swap after "+QUSIM: 1" URC
Quectel emits "+QUSIM: 1" after eUICC reinitialization. Detect it
and perform SIM swap check if one is encountered.
The motivation here is that M2M eUICC profile switch causes eUICC
reset and this is one way to detect and handle profile switches
properly on Quectel modems. The existing SIM hot swap mechanism is
used as it appears to be suitable for handling profile switches as
well as physical swapping of SIM cards.
Diffstat (limited to 'plugins/quectel/mm-shared-quectel.h')
-rw-r--r-- | plugins/quectel/mm-shared-quectel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/quectel/mm-shared-quectel.h b/plugins/quectel/mm-shared-quectel.h index 4ebcfd61..22ee8bee 100644 --- a/plugins/quectel/mm-shared-quectel.h +++ b/plugins/quectel/mm-shared-quectel.h @@ -45,5 +45,11 @@ void mm_shared_quectel_firmware_load_update_settings MMFirmwareUpdateSettings *mm_shared_quectel_firmware_load_update_settings_finish (MMIfaceModemFirmware *self, GAsyncResult *res, GError **error); +void mm_shared_quectel_setup_sim_hot_swap (MMIfaceModem *self, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_shared_quectel_setup_sim_hot_swap_finish (MMIfaceModem *self, + GAsyncResult *res, + GError **error); #endif /* MM_SHARED_QUECTEL_H */ |