From 07a6b6032b16bae5bd9eb963d51bac6141d79e67 Mon Sep 17 00:00:00 2001 From: lvmaorui Date: Wed, 26 May 2021 16:09:51 +0800 Subject: mmcli:add SAR command --sar-status/--sar-enable/--sar-disable/--set-power-level --- cli/mmcli.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli/mmcli.c') diff --git a/cli/mmcli.c b/cli/mmcli.c index eff1b512..e10267a3 100644 --- a/cli/mmcli.c +++ b/cli/mmcli.c @@ -229,6 +229,8 @@ main (gint argc, gchar **argv) mmcli_modem_time_get_option_group ()); g_option_context_add_group (context, mmcli_modem_firmware_get_option_group ()); + g_option_context_add_group (context, + mmcli_modem_sar_get_option_group ()); g_option_context_add_group (context, mmcli_modem_signal_get_option_group ()); g_option_context_add_group (context, @@ -402,6 +404,13 @@ main (gint argc, gchar **argv) else mmcli_modem_firmware_run_synchronous (connection); } + /* Modem SAR options? */ + else if (mmcli_modem_sar_options_enabled ()) { + if (async_flag) + mmcli_modem_sar_run_asynchronous (connection, cancellable); + else + mmcli_modem_sar_run_synchronous (connection); + } /* Modem Signal options? */ else if (mmcli_modem_signal_options_enabled ()) { if (async_flag) @@ -458,6 +467,8 @@ main (gint argc, gchar **argv) mmcli_modem_time_shutdown (); } else if (mmcli_modem_firmware_options_enabled ()) { mmcli_modem_firmware_shutdown (); + } else if (mmcli_modem_sar_options_enabled ()) { + mmcli_modem_sar_shutdown (); } else if (mmcli_modem_signal_options_enabled ()) { mmcli_modem_signal_shutdown (); } else if (mmcli_modem_oma_options_enabled ()) { -- cgit v1.2.3-70-g09d2