diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-17 01:07:14 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-17 01:07:14 +0200 |
commit | 743af014a307153c017077d255c7b3a181237e35 (patch) | |
tree | c26c38c19122fb2cfb42064069e05888f2d2c215 /patches/attachment-0005.patch | |
parent | fdf028a3703e66770be71c777d7609c58611f859 (diff) | |
parent | 29f16288001cd0d64e7c158bb1e327483a9e2d9a (diff) | |
download | nixos-743af014a307153c017077d255c7b3a181237e35.tar nixos-743af014a307153c017077d255c7b3a181237e35.tar.gz nixos-743af014a307153c017077d255c7b3a181237e35.tar.bz2 nixos-743af014a307153c017077d255c7b3a181237e35.tar.xz nixos-743af014a307153c017077d255c7b3a181237e35.zip |
Merge branch 'master' of git://git.yggdrasil.li/nixos
Diffstat (limited to 'patches/attachment-0005.patch')
-rw-r--r-- | patches/attachment-0005.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/patches/attachment-0005.patch b/patches/attachment-0005.patch new file mode 100644 index 00000000..ef455bce --- /dev/null +++ b/patches/attachment-0005.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | >From cfa1df1527d81bf8cf3deeaf9ce341cd6c2a954c Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= <bjorn@mork.no> | ||
3 | Date: Mon, 4 Apr 2016 14:47:01 +0200 | ||
4 | Subject: [PATCH 2/2] qmicli: support MBIM EXT_QMUX devices | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Signed-off-by: Bjørn Mork <bjorn@mork.no> | ||
10 | --- | ||
11 | src/qmicli/qmicli.c | 9 ++++++++- | ||
12 | 1 file changed, 8 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/src/qmicli/qmicli.c b/src/qmicli/qmicli.c | ||
15 | index 85c2faa..c591da2 100644 | ||
16 | --- a/src/qmicli/qmicli.c | ||
17 | +++ b/src/qmicli/qmicli.c | ||
18 | @@ -56,6 +56,7 @@ static gboolean device_open_version_info_flag; | ||
19 | static gboolean device_open_sync_flag; | ||
20 | static gchar *device_open_net_str; | ||
21 | static gboolean device_open_proxy_flag; | ||
22 | +static gboolean device_open_mbim_flag; | ||
23 | static gchar *client_cid_str; | ||
24 | static gboolean client_no_release_cid_flag; | ||
25 | static gboolean verbose_flag; | ||
26 | @@ -99,6 +100,10 @@ static GOptionEntry main_entries[] = { | ||
27 | "Request to use the 'qmi-proxy' proxy", | ||
28 | NULL | ||
29 | }, | ||
30 | + { "device-open-mbim", 0, 0, G_OPTION_ARG_NONE, &device_open_mbim_flag, | ||
31 | + "Open an MBIM device with EXT_QMUX support", | ||
32 | + NULL | ||
33 | + }, | ||
34 | { "device-open-net", 0, 0, G_OPTION_ARG_STRING, &device_open_net_str, | ||
35 | "Open device with specific link protocol and QoS flags", | ||
36 | "[net-802-3|net-raw-ip|net-qos-header|net-no-qos-header]" | ||
37 | @@ -603,7 +608,9 @@ device_new_ready (GObject *unused, | ||
38 | open_flags |= QMI_DEVICE_OPEN_FLAGS_SYNC; | ||
39 | if (device_open_proxy_flag) | ||
40 | open_flags |= QMI_DEVICE_OPEN_FLAGS_PROXY; | ||
41 | - if (device_open_net_str) | ||
42 | + if (device_open_mbim_flag) | ||
43 | + open_flags |= QMI_DEVICE_OPEN_FLAGS_MBIM; | ||
44 | + if (device_open_net_str) | ||
45 | if (!qmicli_read_net_open_flags_from_string (device_open_net_str, &open_flags)) | ||
46 | exit (EXIT_FAILURE); | ||
47 | |||
48 | -- | ||
49 | 2.1.4 | ||
50 | |||