diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-05-23 11:45:51 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-05 19:15:14 +0200 |
commit | 2e223b5dbd60daef5e7a02f75973c72e62910f0d (patch) | |
tree | 8e7bf6d6c2323f28d1759b2d384afe7d71de8e37 | |
parent | 44ddbf48e2dae9efb2e8d87298c82a2c3020578c (diff) |
mmcli,modem: show supported IP families in modem info
-rw-r--r-- | cli/mmcli-modem.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c index 9dce897f..035645f3 100644 --- a/cli/mmcli-modem.c +++ b/cli/mmcli-modem.c @@ -243,6 +243,7 @@ print_modem_info (void) gchar *preferred_mode_string; gchar *supported_bands_string; gchar *bands_string; + gchar *supported_ip_families_string; gchar *unlock_retries_string; gchar *own_numbers_string; MMModemBand *bands = NULL; @@ -277,6 +278,8 @@ print_modem_info (void) mm_modem_get_preferred_mode (ctx->modem)); supported_modes_string = mm_modem_mode_build_string_from_mask ( mm_modem_get_supported_modes (ctx->modem)); + supported_ip_families_string = mm_bearer_ip_family_build_string_from_mask ( + mm_modem_get_supported_ip_families (ctx->modem)); unlock_retries = mm_modem_get_unlock_retries (ctx->modem); unlock_retries_string = mm_unlock_retries_build_string (unlock_retries); @@ -383,6 +386,11 @@ print_modem_info (void) VALIDATE_UNKNOWN (supported_bands_string), VALIDATE_UNKNOWN (bands_string)); + /* IP families */ + g_print (" -------------------------\n" + " IP | supported: '%s'\n", + VALIDATE_UNKNOWN (supported_ip_families_string)); + /* If available, 3GPP related stuff */ if (ctx->modem_3gpp) { gchar *facility_locks; @@ -450,6 +458,7 @@ print_modem_info (void) VALIDATE_PATH (mm_modem_get_sim_path (ctx->modem))); g_print ("\n"); + g_free (supported_ip_families_string); g_free (bands_string); g_free (supported_bands_string); g_free (access_technologies_string); |