3gpp-profile: Add profile name

QMI modems also report a profile name, and that value can be used to
select and update a specific profile.
This commit is contained in:
Andrew Lassalle
2021-10-14 11:57:26 -07:00
committed by Aleksander Morgado
parent c3fe738e7d
commit 8ecf7fc83e
4 changed files with 76 additions and 6 deletions

View File

@@ -898,6 +898,9 @@ build_profile_human (GPtrArray *array,
g_ptr_array_add (array, g_strdup_printf ("profile-id: %u", mm_3gpp_profile_get_profile_id (profile)));
if ((aux = mm_3gpp_profile_get_profile_name (profile)) != NULL)
g_ptr_array_add (array, g_strdup_printf (" profile name: %s", aux));
if ((aux = mm_3gpp_profile_get_apn (profile)) != NULL)
g_ptr_array_add (array, g_strdup_printf (" apn: %s", aux));
@@ -945,6 +948,9 @@ build_profile_keyvalue (GPtrArray *array,
str = g_string_new ("");
g_string_append_printf (str, "profile-id: %u", mm_3gpp_profile_get_profile_id (profile));
if ((aux = mm_3gpp_profile_get_profile_name (profile)) != NULL)
g_string_append_printf (str, ", profile-name: %s", aux);
if ((aux = mm_3gpp_profile_get_apn (profile)) != NULL)
g_string_append_printf (str, ", apn: %s", aux);