From 8ecf7fc83e8ef0e1985b6a57da5bb25b26e43c72 Mon Sep 17 00:00:00 2001 From: Andrew Lassalle Date: Thu, 14 Oct 2021 11:57:26 -0700 Subject: 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. --- cli/mmcli-output.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/mmcli-output.c') 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); -- cgit v1.2.3-70-g09d2