diff options
author | Andrew Lassalle <andrewlassalle@chromium.org> | 2021-10-14 11:57:26 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-10-17 17:56:44 +0200 |
commit | 8ecf7fc83e8ef0e1985b6a57da5bb25b26e43c72 (patch) | |
tree | 225485b57d5a0fb796ee57ac66fe72428473503f /cli | |
parent | c3fe738e7d69c97c701469095852bd068ce08b98 (diff) |
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.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/mmcli-output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/mmcli-output.c b/cli/mmcli-output.c index 9be366e1..c012c1bd 100644 --- a/cli/mmcli-output.c +++ b/cli/mmcli-output.c @@ -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); |