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:

committed by
Aleksander Morgado

parent
c3fe738e7d
commit
8ecf7fc83e
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user