diff options
author | lvmaorui <ZRMaorui.Lu@fibocom.com> | 2021-05-26 16:09:51 +0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-10-13 13:14:10 +0200 |
commit | 07a6b6032b16bae5bd9eb963d51bac6141d79e67 (patch) | |
tree | 62dd148e536f5f8336f6ed8485283bdfe3dfe565 /cli/mmcli.c | |
parent | 1f321bd79d4e64ff96603c602a283d789ef0b4d1 (diff) |
mmcli:add SAR command --sar-status/--sar-enable/--sar-disable/--set-power-level
Diffstat (limited to 'cli/mmcli.c')
-rw-r--r-- | cli/mmcli.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/mmcli.c b/cli/mmcli.c index eff1b512..e10267a3 100644 --- a/cli/mmcli.c +++ b/cli/mmcli.c @@ -230,6 +230,8 @@ main (gint argc, gchar **argv) 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, mmcli_modem_oma_get_option_group ()); @@ -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 ()) { |