diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-20 13:45:05 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-25 11:14:37 +0200 |
commit | a535b2fddc8686beeb68fe8fcaa74cf84ae6ba81 (patch) | |
tree | 356347e777d6fdc529f877e459f6ac104568e5cc | |
parent | 38f631e00e2ebf3020d312d610d0d716c0faadc7 (diff) |
base-sim: skip loading SIM identifier in eSIM without profiles
-rw-r--r-- | src/mm-base-sim.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c index e1ccedb5..16cdd505 100644 --- a/src/mm-base-sim.c +++ b/src/mm-base-sim.c @@ -803,6 +803,13 @@ mm_base_sim_load_sim_identifier (MMBaseSim *self, return; } + if (IS_ESIM_WITHOUT_PROFILES (self)) { + g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED, + "no SIM identifier in eSIM without profiles"); + g_object_unref (task); + return; + } + MM_BASE_SIM_GET_CLASS (self)->load_sim_identifier ( self, (GAsyncReadyCallback)load_sim_identifier_ready, |