aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/mmcli-modem-simple.c15
-rw-r--r--cli/mmcli-modem.c3
2 files changed, 15 insertions, 3 deletions
diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c
index 22976a97..7b997926 100644
--- a/cli/mmcli-modem-simple.c
+++ b/cli/mmcli-modem-simple.c
@@ -251,13 +251,16 @@ status_process_reply (MMSimpleStatus *result,
(mm_simple_status_get_3gpp_registration_state (result) ==
MM_MODEM_3GPP_REGISTRATION_STATE_ROAMING)) {
g_print (" -------------------------\n"
- " 3GPP | registration: '%s'\n"
+ " 3GPP | registration: '%s'\n"
" | operator code: '%s'\n"
- " | operator name: '%s'\n",
+ " | operator name: '%s'\n"
+ " | subscription: '%s'\n",
mm_modem_3gpp_registration_state_get_string (
mm_simple_status_get_3gpp_registration_state (result)),
VALIDATE_UNKNOWN (mm_simple_status_get_3gpp_operator_code (result)),
- VALIDATE_UNKNOWN (mm_simple_status_get_3gpp_operator_name (result)));
+ VALIDATE_UNKNOWN (mm_simple_status_get_3gpp_operator_name (result)),
+ mm_modem_3gpp_subscription_state_get_string (
+ mm_simple_status_get_3gpp_subscription_state (result)));
}
if ((mm_simple_status_get_cdma_cdma1x_registration_state (result) !=
@@ -296,8 +299,14 @@ status_process_reply (MMSimpleStatus *result,
g_free (access_tech_str);
g_free (bands_str);
+ } else {
+ g_print (" -------------------------\n"
+ " 3GPP | subscription: '%s'\n",
+ mm_modem_3gpp_subscription_state_get_string (
+ mm_simple_status_get_3gpp_subscription_state (result)));
}
+
g_print ("\n");
g_object_unref (result);
}
diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c
index 18e7356f..dbec796f 100644
--- a/cli/mmcli-modem.c
+++ b/cli/mmcli-modem.c
@@ -441,11 +441,14 @@ print_modem_info (void)
" | enabled locks: '%s'\n"
" | operator id: '%s'\n"
" | operator name: '%s'\n"
+ " | subscription: '%s'\n"
" | registration: '%s'\n",
VALIDATE_UNKNOWN (mm_modem_3gpp_get_imei (ctx->modem_3gpp)),
facility_locks,
VALIDATE_UNKNOWN (mm_modem_3gpp_get_operator_code (ctx->modem_3gpp)),
VALIDATE_UNKNOWN (mm_modem_3gpp_get_operator_name (ctx->modem_3gpp)),
+ mm_modem_3gpp_subscription_state_get_string (
+ mm_modem_3gpp_get_subscription_state ((ctx->modem_3gpp))),
mm_modem_3gpp_registration_state_get_string (
mm_modem_3gpp_get_registration_state ((ctx->modem_3gpp))));