cli,modem: add 5GNR registration settings in modem info output
This commit is contained in:
@@ -403,6 +403,8 @@ print_modem_info (void)
|
||||
gchar *initial_eps_bearer_ip_family_str = NULL;
|
||||
const gchar *initial_eps_bearer_user = NULL;
|
||||
const gchar *initial_eps_bearer_password = NULL;
|
||||
const gchar *nr5g_registration_settings_mico_mode_str = NULL;
|
||||
const gchar *nr5g_registration_settings_drx_cycle_str = NULL;
|
||||
|
||||
if (ctx->modem_3gpp) {
|
||||
imei = mm_modem_3gpp_get_imei (ctx->modem_3gpp);
|
||||
@@ -426,6 +428,16 @@ print_modem_info (void)
|
||||
initial_eps_bearer_password = mm_bearer_properties_get_password (initial_eps_bearer_properties);
|
||||
}
|
||||
}
|
||||
|
||||
if (mm_modem_get_current_capabilities (ctx->modem) & (MM_MODEM_CAPABILITY_5GNR)) {
|
||||
MMNr5gRegistrationSettings *nr5g_registration_settings;
|
||||
|
||||
nr5g_registration_settings = mm_modem_3gpp_peek_nr5g_registration_settings (ctx->modem_3gpp);
|
||||
if (nr5g_registration_settings) {
|
||||
nr5g_registration_settings_mico_mode_str = mm_modem_3gpp_mico_mode_get_string (mm_nr5g_registration_settings_get_mico_mode (nr5g_registration_settings));
|
||||
nr5g_registration_settings_drx_cycle_str = mm_modem_3gpp_drx_cycle_get_string (mm_nr5g_registration_settings_get_drx_cycle (nr5g_registration_settings));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mmcli_output_string (MMC_F_3GPP_IMEI, imei);
|
||||
@@ -440,6 +452,8 @@ print_modem_info (void)
|
||||
mmcli_output_string_take (MMC_F_3GPP_EPS_BEARER_SETTINGS_IP_TYPE, initial_eps_bearer_ip_family_str);
|
||||
mmcli_output_string (MMC_F_3GPP_EPS_BEARER_SETTINGS_USER, initial_eps_bearer_user);
|
||||
mmcli_output_string (MMC_F_3GPP_EPS_BEARER_SETTINGS_PASSWORD, initial_eps_bearer_password);
|
||||
mmcli_output_string (MMC_F_3GPP_5GNR_REGISTRATION_MICO_MODE, nr5g_registration_settings_mico_mode_str);
|
||||
mmcli_output_string (MMC_F_3GPP_5GNR_REGISTRATION_DRX_CYCLE, nr5g_registration_settings_drx_cycle_str);
|
||||
mmcli_output_pco_list (pco_list);
|
||||
|
||||
g_free (facility_locks);
|
||||
|
Reference in New Issue
Block a user