diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-10 21:37:18 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2023-04-11 09:44:47 +0000 |
commit | c61a7db1b61652d5fc82d4556879af3139821750 (patch) | |
tree | 64eeef0a99c9f39e99a08667ea3c0577931e3c99 /src/mm-broadband-modem-qmi.c | |
parent | 06646001cea1b7a12c5f91987e5ebd6cecb4ff80 (diff) |
helpers-qmi: support new personalization feature status type
The personalization feature enum used in "card status" is different to
the one used in other UIM operations like "depersonalization".
libqmi dependency updated to 1.33.6 to ensure we can use the new types.
Diffstat (limited to 'src/mm-broadband-modem-qmi.c')
-rw-r--r-- | src/mm-broadband-modem-qmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mm-broadband-modem-qmi.c b/src/mm-broadband-modem-qmi.c index 9e28c308..3987a115 100644 --- a/src/mm-broadband-modem-qmi.c +++ b/src/mm-broadband-modem-qmi.c @@ -3018,8 +3018,7 @@ modem_3gpp_disable_facility_lock (MMIfaceModem3gpp *self, task = g_task_new (self, NULL, callback, user_data); /* Choose facility to disable */ - feature = qmi_personalization_feature_from_mm_modem_3gpp_facility (facility); - if (feature == QMI_UIM_CARD_APPLICATION_PERSONALIZATION_FEATURE_UNKNOWN) { + if (!qmi_personalization_feature_from_mm_modem_3gpp_facility (facility, &feature)) { g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_INVALID_ARGS, "Not supported type of facility lock."); g_object_unref (task); |