summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* release: bump version to 1.14.01.14.0Aleksander Morgado2016-07-051-3/+3
|
* build: update NEWSAleksander Morgado2016-07-051-0/+41
|
* docs: add missing documentation for the qmi-over-mbim serviceAleksander Morgado2016-07-053-1/+9
|
* libmbim-glib,message: internal helper to apply paddingAleksander Morgado2016-07-051-25/+30
|
* libmbim-glib,message: minor coding style fixAleksander Morgado2016-07-051-1/+1
|
* libmbim-glib,cid: user helpers symbols to define cid capabilitiesAleksander Morgado2016-07-051-45/+53
|
* libmbim-glib,uuid: define MBIM_SERVICE_LAST in internal compilation onlyAleksander Morgado2016-07-053-14/+12
|
* Avoid affecting the padding behavior for other services than QMIEmil Ljungdahl2016-07-055-17/+21
|
* Added json file lost in original qmi-over-mbim patchEmil Ljungdahl2016-07-051-0/+15
|
* QMI via MBIMCollin McMillan2016-07-0511-27/+104
| | | | Signed-off-by: Bjørn Mork <bjorn@mork.no>
* mbimcli: allow passing empty APN in --connectAleksander Morgado2016-07-011-21/+17
|
* mbimcli: allow querying IP configuration out of the connection attemptAleksander Morgado2016-07-011-33/+79
|
* mbim-network: allow using the mbim-proxy setupAleksander Morgado2016-06-301-10/+22
|
* mbim-network: allow specifying APN user/password in profileAleksander Morgado2016-06-301-3/+51
|
* mbim-network: use standard checks for empty variablesAleksander Morgado2016-06-301-14/+14
|
* mbim-network: allow loading profile from a different pathAleksander Morgado2016-06-301-14/+60
| | | | This effectively makes mbim-network work with multiple devices in a single system.
* build: add missing GUDEV_CFLAGS and GUDEV_LIBSAleksander Morgado2016-04-111-1/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=94881
* build: really make gudev not mandatoryAleksander Morgado2016-04-101-2/+1
|
* build: make gudev optionalAleksander Morgado2016-04-102-19/+133
| | | | | | There's really not much benefit on a hard build-dependency on gudev if we're just using it to get the path of the descriptors path, so provide an alternate implementation for now just using sysfs paths, and make gudev selection auto.
* build: update configure reportAleksander Morgado2016-04-101-6/+13
|
* build: Run configure script from builddir rather than srcdirPhilip Withnall2016-03-211-3/+4
| | | | | | | | | If building from a clean git clone with builddir ≠ srcdir, the configure script is (correctly) generated in builddir by autoconf. Execute it from there, rather than from the srcdir, so that all the configure products (Makefiles, etc.) are generated in the builddir. https://bugs.freedesktop.org/show_bug.cgi?id=94639
* mbimcli: avoid shadowing 'dup'Aleksander Morgado2015-10-101-5/+4
|
* libmbim-glib: Increase the retry interval to 5 seconds.Shih-Yuan Lee (FourDollars)2015-09-241-4/+5
| | | | | | | | | Sierra Mobile Broadband EM7455 won't work while the retry interval is only one second. https://bugs.freedesktop.org/show_bug.cgi?id=91189 Signed-off-by: Shih-Yuan Lee (FourDollars) <sylee@canonical.com>
* mbimcli: fix username/password checks with the '--connect' actionDavid Ward2015-09-101-2/+2
| | | | | Fixes: 4e58451a744dbc3f086e9c1dd2d7469ff70d50ef ("mbimcli: add support for Basic Connect session IDs") Signed-off-by: David Ward <david.ward@ll.mit.edu>
* mbimcli: fix parsing --query-connection-state and --disconnect args after ↵Dan Williams2015-09-101-2/+32
| | | | | | | | | | | | | 4e58451 From f6d10eb69eefeb190c9349fdbd3a23b0e838913e Mon Sep 17 00:00:00 2001 From: Dan Williams <dcbw@redhat.com> Date: Wed, 9 Sep 2015 12:06:00 -0500 Subject: [PATCH] mbimcli: fix parsing --query-connection-state and --disconnect args after 4e58451 Fixes: 4e58451a744dbc3f086e9c1dd2d7469ff70d50ef ("mbimcli: add support for Basic Connect session IDs") Reported-by: David Ward
* mbimcli: add support for Basic Connect session IDsDan Williams2015-08-183-57/+385
| | | | | | | | | | --query-connection-state=[SessionID] --disconnect=[SessionID] --connect=["key=value,..."] As part of enabling session IDs, we must also convert --connect over to a key=value format for all its arguments, but still preserve backwards compat with the old format.
* mbimcli: longer timeout for '--connect' operationAleksander Morgado2015-06-051-1/+1
|
* mbimcli: longer timeout for '--[attach|detach]-packet-service' operationsAleksander Morgado2015-06-051-1/+1
|
* mbimcli: longer timeout for '--register-automatic' operationAleksander Morgado2015-06-011-1/+1
|
* mbimcli: report IP configuration on connectDan Williams2015-05-064-17/+280
|
* libmbim-glib,message: allow building messages of custom servicesAleksander Morgado2015-02-252-9/+39
| | | | | | | Once a service has been registered, we should allow users of the library to actually build Command messages with the new service. https://bugs.freedesktop.org/show_bug.cgi?id=77225
* libmbim-glib,uuid: don't assert if service id is neither generic nor registeredAleksander Morgado2015-02-251-1/+4
| | | | Just warn and return NULL.
* mbim-network: improved --help output with more detailed informationAleksander Morgado2015-02-231-3/+23
|
* mbimcli: add command completionAleksander Morgado2015-01-252-0/+95
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=87901
* mbim-proxy: block function error signals when checking if device is opened ↵aleksander/internal-open-checksAleksander Morgado2015-01-171-0/+12
| | | | or not
* mbim-proxy: upon new client, always check if device really open with a commandAleksander Morgado2015-01-171-27/+102
| | | | | | | | | | Never assume that mbim_device_is_open() will return the valid open status of the real device. If we're in the middle of a suspend/resume cycle, the logic will think that the session is open, while in reality it may not be. To really make sure that we're open, explicitly send a Command message to the device, and react on the possible NotOpened error by re-opening the device right away.
* mbim-device: trace transaction status within the MbimDeviceAleksander Morgado2015-01-171-0/+24
|
* mbim-device: explictly maintain a reference to the MbimDevice in the transactionAleksander Morgado2015-01-171-0/+3
| | | | | We were already doing this as g_simple_async_result_new() was taking one itself, so this is just to make the code clearer and to ease next changes.
* mbim-device: only return transaction if it gets releasedAleksander Morgado2015-01-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And avoid segfault in weird situations.... E.g. if we send Open(3) and we get Close-Done(3) (as with a Telit LN930 device) the logic was segfaulting. The reason being that device_release_transaction() was returning a valid Transaction (that with ID 3) but wasn't being released from the internal HT (as we were asking for Open-Done, not Close-Done or Invalid). [17 ene 2015, 18:09:23] [Debug] [/dev/cdc-wdm0,3] transaction open: store [17 ene 2015, 18:09:23] [Debug] [/dev/cdc-wdm0] Sent message... <<<<<< RAW: <<<<<< length = 16 <<<<<< data = 01:00:00:00:10:00:00:00:03:00:00:00:00:02:00:00 [17 ene 2015, 18:09:23] [Debug] [/dev/cdc-wdm0] Sent message (translated)... <<<<<< Header: <<<<<< length = 16 <<<<<< type = open (0x00000001) <<<<<< transaction = 3 <<<<<< Contents: <<<<<< max_control_transfer = 512 [17 ene 2015, 18:09:23] [Debug] [/dev/cdc-wdm0] Received message... >>>>>> RAW: >>>>>> length = 16 >>>>>> data = 02:00:00:80:10:00:00:00:03:00:00:00:00:00:00:00 [17 ene 2015, 18:09:23] [Debug] [/dev/cdc-wdm0,3] transaction open: complete: error [17 ene 2015, 18:09:23] [Debug] getting open done result failed: closed [17 ene 2015, 18:09:23] [Debug] Client (6) connection closed... [17 ene 2015, 18:09:23] -Warning ** error opening device: Unexpected response message type: 0x80000002 ** Mbim:ERROR:mbim-device.c:2205:finalize: assertion failed: (g_hash_table_size (self->priv->transactions[i]) == 0) Program received signal SIGABRT, Aborted. 0x00007ffff6f56a97 in raise () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff6f56a97 in raise () from /usr/lib/libc.so.6 #1 0x00007ffff6f57e6a in abort () from /usr/lib/libc.so.6 #2 0x00007ffff73357f5 in g_assertion_message () from /usr/lib/libglib-2.0.so.0 #3 0x00007ffff733588a in g_assertion_message_expr () from /usr/lib/libglib-2.0.so.0 #4 0x00007ffff7bb44c3 in finalize (object=0x617100) at mbim-device.c:2205 #5 0x00007ffff75e925a in g_object_unref () from /usr/lib/libgobject-2.0.so.0 #6 0x00007ffff7bb4bd7 in client_set_device (client=0x607300, device=0x0) at mbim-proxy.c:172 #7 0x00007ffff7bb4cd8 in client_unref (client=0x607300) at mbim-proxy.c:199 #8 0x00007ffff7bb522f in request_complete_and_free (request=0x613350) at mbim-proxy.c:369 #9 0x00007ffff7bb59d1 in proxy_config_internal_device_open_ready (self=0x60f880, res=0x6494a0, request=0x613350) at mbim-proxy.c:616 #10 0x00007ffff78976d7 in g_simple_async_result_complete () from /usr/lib/libgio-2.0.so.0 #11 0x00007ffff7897739 in ?? () from /usr/lib/libgio-2.0.so.0 #12 0x00007ffff730f91d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #13 0x00007ffff730fcf8 in ?? () from /usr/lib/libglib-2.0.so.0 #14 0x00007ffff7310022 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #15 0x000000000040153b in main (argc=1, argv=0x7fffffffead8) at mbim-proxy.c:243 Conflicts: src/libmbim-glib/mbim-device.c
* build: post release version bump to 1.13.0Aleksander Morgado2015-01-131-1/+1
|
* release: bump version to 1.12.01.12.0Aleksander Morgado2015-01-131-4/+4
|
* build: use absolute paths for the ignored files in subdirsAleksander Morgado2015-01-131-45/+45
|
* libmbim-glib,proxy: root user always allowedAleksander Morgado2015-01-131-5/+4
| | | | | | Even if MBIM_USERNAME is defined to a non-root user, root should always be able to access the proxy. E.g. ModemManager (run as root) must be able to launch and access the proxy even if MBIM_USERNAME was set to a non-root user.
* libmbim-glib,utils: avoid getpwnam() call if --enable-mbim-username not usedAleksander Morgado2015-01-093-7/+24
| | | | | | | | | | | | | | | | If --enable-mbim-username isn't explicitly used, we should just check for the root user UID, without using getpwnam(). See e.g. these SELinux warnings: SELinux is preventing /usr/bin/bash from read access on the file /etc/passwd. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that bash should be allowed read access on the passwd file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep mbim-proxy /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp
* build: ignore built filesAleksander Morgado2014-12-301-0/+1
|
* build: update NEWSAleksander Morgado2014-12-301-0/+38
|
* libmbim-glib,proxy: translate device wrong-state errors into function ↵aleksander/function-error-in-transactionAleksander Morgado2014-12-281-0/+14
| | | | | | | | not-opened errors We're forcing close the MbimDevice whenever we detect a not-opened error; so if we afterwards get more commands from the clients, don't just timeout the requests, instead return our own generated function error messages specifying not-opened.
* libmbim-glib,proxy: force close device if not-opened error detectedAleksander Morgado2014-12-281-0/+25
|
* libmbim-glib,message: new mbim_message_function_error_new()Aleksander Morgado2014-12-283-0/+30
| | | | To be used by the proxy to mimic modem-generated commands.
* libmbim-glib,device: don't segfault if force-closed during message processingAleksander Morgado2014-12-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | (mbim-proxy:17046): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'array' failed Program received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff7316ae0 in g_logv () from /usr/lib/libglib-2.0.so.0 (gdb) bt #0 0x00007ffff7316ae0 in g_logv () from /usr/lib/libglib-2.0.so.0 #1 0x00007ffff7316d1f in g_log () from /usr/lib/libglib-2.0.so.0 #2 0x00007ffff72e49ba in g_byte_array_remove_range () from /usr/lib/libglib-2.0.so.0 #3 0x00007ffff7bb126d in parse_response (self=0x618100) at mbim-device.c:642 #4 0x00007ffff7bb151c in data_available (source=0x64ab60, condition=G_IO_IN, self=0x618100) at mbim-device.c:708 #5 0x00007ffff730f91d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #6 0x00007ffff730fcf8 in ?? () from /usr/lib/libglib-2.0.so.0 #7 0x00007ffff7310022 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #8 0x000000000040153b in main (argc=1, argv=0x7fffffffeac8) at mbim-proxy.c:243 (gdb) fr 3 #3 0x00007ffff7bb126d in parse_response (self=0x618100) at mbim-device.c:642 642 g_byte_array_remove_range (self->priv->response, 0, in_length); (gdb) p self->priv->response $1 = (GByteArray *) 0x0