diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-20 14:31:49 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-25 11:14:45 +0200 |
commit | 234f185c3a7731f858dac6c82339711806376472 (patch) | |
tree | 70b31a9ba01fe77d19b7758f58671abba9ecfac4 /src/mm-broadband-modem.c | |
parent | 012303013699bf23fde74a3ecb067c5c3a011554 (diff) |
iface-modem: fail initialization if eSIM without profiles
A modem using an eSIM without profiles should not be allowed to get
enabled, it should be really treated as a modem without a physical
SIM.
Diffstat (limited to 'src/mm-broadband-modem.c')
-rw-r--r-- | src/mm-broadband-modem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index 2998b779..5c87caf2 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -12389,6 +12389,10 @@ iface_modem_initialize_ready (MMBroadbandModem *self, MM_MOBILE_EQUIPMENT_ERROR, MM_MOBILE_EQUIPMENT_ERROR_SIM_WRONG)) failed_reason = MM_MODEM_STATE_FAILED_REASON_SIM_MISSING; + else if (g_error_matches (error, + MM_CORE_ERROR, + MM_CORE_ERROR_WRONG_SIM_STATE)) + failed_reason = MM_MODEM_STATE_FAILED_REASON_ESIM_WITHOUT_PROFILES; g_error_free (error); |