aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2016-04-04 14:47:01 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-07-07 19:16:17 +0200
commit7f85b32e68431d89094f63d8926890739a886b89 (patch)
tree50a2e4e50a6abc9c2be189420da99acc2c5f6eef
parentfb4b2c56198c15fed771e91500919b8734f5453e (diff)
qmicli: support MBIM EXT_QMUX devices
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--src/qmicli/qmicli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qmicli/qmicli.c b/src/qmicli/qmicli.c
index 9f499bc..705d9bc 100644
--- a/src/qmicli/qmicli.c
+++ b/src/qmicli/qmicli.c
@@ -56,6 +56,7 @@ static gboolean device_open_version_info_flag;
static gboolean device_open_sync_flag;
static gchar *device_open_net_str;
static gboolean device_open_proxy_flag;
+static gboolean device_open_mbim_flag;
static gchar *client_cid_str;
static gboolean client_no_release_cid_flag;
static gboolean verbose_flag;
@@ -99,6 +100,10 @@ static GOptionEntry main_entries[] = {
"Request to use the 'qmi-proxy' proxy",
NULL
},
+ { "device-open-mbim", 0, 0, G_OPTION_ARG_NONE, &device_open_mbim_flag,
+ "Open an MBIM device with EXT_QMUX support",
+ NULL
+ },
{ "device-open-net", 0, 0, G_OPTION_ARG_STRING, &device_open_net_str,
"Open device with specific link protocol and QoS flags",
"[net-802-3|net-raw-ip|net-qos-header|net-no-qos-header]"
@@ -603,6 +608,8 @@ device_new_ready (GObject *unused,
open_flags |= QMI_DEVICE_OPEN_FLAGS_SYNC;
if (device_open_proxy_flag)
open_flags |= QMI_DEVICE_OPEN_FLAGS_PROXY;
+ if (device_open_mbim_flag)
+ open_flags |= QMI_DEVICE_OPEN_FLAGS_MBIM;
if (device_open_net_str)
if (!qmicli_read_net_open_flags_from_string (device_open_net_str, &open_flags))
exit (EXIT_FAILURE);