cli: new 'profile-source' setting in 3GPP profile

This commit is contained in:
Aleksander Morgado
2021-11-26 21:24:13 +01:00
parent fb0b00db16
commit 3c0d94ac03

View File

@@ -933,6 +933,7 @@ build_profile_human (GPtrArray *array,
MMBearerApnType apn_type;
MMBearerAccessTypePreference access_type_preference;
MMBearerRoamingAllowance roaming_allowance;
MMBearerProfileSource profile_source;
g_ptr_array_add (array, g_strdup_printf ("profile-id: %u", mm_3gpp_profile_get_profile_id (profile)));
g_ptr_array_add (array, g_strdup_printf (" profile enabled: %s",
@@ -987,6 +988,12 @@ build_profile_human (GPtrArray *array,
roaming_allowance_str = mm_bearer_roaming_allowance_build_string_from_mask (roaming_allowance);
g_ptr_array_add (array, g_strdup_printf (" roaming allowance: %s", roaming_allowance_str));
}
profile_source = mm_3gpp_profile_get_profile_source (profile);
if (profile_source != MM_BEARER_PROFILE_SOURCE_UNKNOWN) {
aux = mm_bearer_profile_source_get_string (profile_source);
g_ptr_array_add (array, g_strdup_printf (" profile source: %s", aux));
}
}
static void