summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-10-01libmbim-glib,device: get_transaction_id() already in 1.24.4HEADmasterAleksander Morgado2-4/+4
(cherry picked from commit 2f870ec400c4c12513d809eccde1da34e80f7d9f)
2020-10-01docs: add missing references to mbim_device_get_transaction_id()Aleksander Morgado2-0/+5
2020-09-29ci: create release tarball and hash as build artifactswicadmin1-0/+8
2020-09-23libmbim-glib,proxy: use same transaction id for all fragmentsBjørn Mork3-2/+29
All fragments must have the same transaction id. Signed-off-by: Bjørn Mork <bjorn@mork.no>
2020-08-09mbim-network: don't manage MBIM channel open when using the proxyAleksander Morgado1-32/+68
If we're using the proxy, we should not try to handle the status of the MBIM channel or attempt to keep the flow of transaction ids in the mbim-network program, because that is implicitly done by the proxy itself.
2020-08-09libmbim-glib,proxy: improve per-device operation loggingAleksander Morgado1-17/+18
2020-08-09libmbim-glib,proxy: improve per-client operation loggingAleksander Morgado1-41/+99
2020-08-09libmbim-glib,proxy: don't acquire device context during untrackAleksander Morgado1-5/+2
Because if the context was never created, we would be creating it at this point, and it wouldn't make sense to do so; e.g.: [Debug] [/dev/cdc-wdm1] unexpected port hangup! [Debug] [/dev/cdc-wdm1] channel destroyed [Debug] Initial device subscribe list... [Debug] [service 0] a289cc33-bcbb-8b4f-b6b0-133ec2aae6df (basic-connect) [Debug] [service 0] 11 CIDs enabled [Debug] [service 0] [cid 0] 2 (subscriber-ready-status) [Debug] [service 0] [cid 1] 3 (radio-state)
2020-08-09mbimcli: add missing EOL in error print when closing deviceAleksander Morgado1-1/+1
[09 ago 2020, 10:15:51] [Debug] [/dev/cdc-wdm1] Received message (translated)... >>>>>> Header: >>>>>> length = 16 >>>>>> type = function-error (0x80000004) >>>>>> transaction = 11 >>>>>> Contents: >>>>>> error = 'NotOpened' (0x00000005) error: couldn't close device: MBIM protocol error: NotOpened[09 ago 2020, 10:15:51] [Debug] [/dev/cdc-wdm1] channel destroyed
2020-08-09libmbim-glib,proxy: avoid double GError freeAleksander Morgado1-1/+0
2020-07-10libmbim-glib,proxy: fix reporting of merged subscribe listAleksander Morgado1-2/+2
We were doing the subscribe list merge correctly, but not reporting it as done because the 'updated' pointer is set to NULL before returning it. This was breaking QMI over MBIM indications, as the registration message to request them was never sent to the device.
2020-06-28libmbim-glib,proxy: fix segfault when printing updated subscriber listAleksander Morgado1-1/+2
We were printing the 'updated' variable after its contents had already been stolen. [28 Jun 2020, 03:06:27] [Debug] Merged service subscribe list built for device '/dev/cdc-wdm0' Thread 1 "mbim-proxy" received signal SIGSEGV, Segmentation fault. _mbim_proxy_helper_service_subscribe_list_debug (list=list@entry=0x0, list_size=6) at mbim-proxy-helpers.c:104 104 const MbimEventEntry *entry = list[i]; (gdb) p list $1 = (const MbimEventEntry * const *) 0x0 (gdb) p list_size $2 = 6 The segfault was only triggered when the mbim-proxy was run with --verbose.
2020-06-23libmbim-glib,device: ignore messages with wrong MBIM message typeAleksander Morgado1-1/+28
The Cinterion mPLS62-w may end up sending messages which are clearly not well formatted MBIM messages, and upon receiving one of them, the mbim-proxy would get completely stuck (e.g. attempting to read a message of >800MB because of the reported length in the first malformed messae). Try to avoid this, by doing an initial filter by message type, which at least solves the seen problem. Not a fully robust fix yet, though. E.g. new logs: [23 jun 2020, 10:43:49] [Debug] [/dev/cdc-wdm1] Sent message (translated)... <<<<<< Header: <<<<<< length = 48 <<<<<< type = command (0x00000003) <<<<<< transaction = 20 <<<<<< Fragment header: <<<<<< total = 1 <<<<<< current = 0 <<<<<< Contents: <<<<<< service = 'atds' (5967bdcc-7fd2-49a2-9f5c-b2e70e527db3) <<<<<< cid = 'location' (0x00000002) <<<<<< type = 'query' (0x00000000) [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 293 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 200 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 168 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 311 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 311 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 311 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 335 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 277 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 312 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 314 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 312 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 280 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 312 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 312 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 326 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 260 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 244 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 326 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 326 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 326 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 306 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 334 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 324 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 356 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 356 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 191 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 201 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 356 bytes in MBIM stream as message type validation fails [23 jun 2020, 10:43:49] -Warning ** [/dev/cdc-wdm1] discarding 356 bytes in MBIM stream as message type validation fails
2020-06-18build: post-release version bump to 1.25.0Aleksander Morgado1-1/+1
2020-06-18release: bump version to 1.24.01.24.0Aleksander Morgado1-5/+5
2020-05-30AUTHORS: update with latest commit statsAleksander Morgado1-0/+2
2020-05-30example: always perform a clean exit, even on errorAleksander Morgado1-2/+0
2020-05-30example: GObject import not explicitly requiredAleksander Morgado1-1/+1
2020-05-29example: separate with 2 whitelines the program methodsAleksander Morgado1-0/+6
2020-05-29example: don't attempt to continue logic after quitting main loopAleksander Morgado1-0/+3
2020-05-27build: bump version to 1.23.900 (1.24-rc1)1.24-rc1Aleksander Morgado1-1/+1
2020-05-27NEWS: update for 1.24Aleksander Morgado1-0/+18
2020-05-27libmbim-glib: skip unneeded methods from introspectionAleksander Morgado2-4/+4
Don't add in introspection the methods reading GObject properties.
2020-05-27mbim-codegen: setup introspection annotations in message creatorsAleksander Morgado1-17/+17
2020-05-27examples: new simple python tester for introspection supportAleksander Morgado6-1/+137
2020-05-27mbim-codegen: set array detail annotationsAleksander Morgado1-7/+7
2020-05-27mbim-codegen: set transfer annotations in parsersAleksander Morgado1-16/+16
2020-05-27mbim-codegen: explicitly flag as optional outputs all fields in parsersAleksander Morgado1-17/+17
2020-05-18mbim-codegen: avoid needing python packaging.version.parseAleksander Morgado2-3/+22
2020-05-18docs,libmbim-glib: include API indicesAleksander Morgado1-3/+47
2020-05-18build-aux: include Since tag in methods built from enumsAleksander Morgado8-95/+99
2020-05-18build-aux: import custom mkenums toolAleksander Morgado4-9/+796
Equivalent to the glib-mkenums released in 2.66, we just include it in the repo to be able to use it earlier than requiring 2.66 in the whole project.
2020-05-18libmbim-glib: add Since tags to all API types and methodsAleksander Morgado12-60/+536
2020-05-18mbim-codegen: add Since tags to all public structs and methodsAleksander Morgado2-123/+159
2020-05-18data: add 'since' version tags to all messagesAleksander Morgado14-323/+402
E.g.: "since" : "1.0" Or per-message-type version tags with 'since-ex', e.g.: "since-ex" : { "query" : "1.0", "response" : "1.0", "notification" : "1.8" },
2020-05-14libmbim-glib,proxy: fix proxy reference countAleksander Morgado1-1/+1
Fixes bf9a52868047c11463692a57fdda6af9f0b59588
2020-05-13build: update list of ignored filesAleksander Morgado1-29/+18
2020-05-13libmbim-glib,introspection: add introspection supportAleksander Morgado4-13/+154
2020-05-13libmbim-glib: move method docs to headersAleksander Morgado14-909/+984
2020-05-11ci: also test distcheck by defaultAleksander Morgado1-2/+4
2020-05-11libmbim-glib,proxy: port to use g_auto() helpersAleksander Morgado1-100/+64
2020-05-11libmbim-glib,message: port to use g_auto() helpersAleksander Morgado1-38/+27
2020-05-11libmbim-glib,device: port to use g_auto() helpersAleksander Morgado1-185/+117
2020-05-11libmbim-glib,device: proxy_control_configuration_set_new() never failsAleksander Morgado1-4/+4
2020-05-11mbim-codegen: port to use g_auto() helpersAleksander Morgado2-42/+23
2020-05-11mbim-proxy: port to use g_auto() helpersAleksander Morgado1-5/+3
2020-05-11mbimcli: port to use g_auto() helpersAleksander Morgado10-813/+400
2020-05-11build: bump version to 1.23.1 to flag existence of new API (autoptr support)Aleksander Morgado1-1/+1
2020-03-21mbimcli: remove empty whiteline in --versionAleksander Morgado1-2/+1
This also fixes the Copyright section in the troffit generated HTML output.
2020-03-21mbimcli: add ':' to the section titlesAleksander Morgado8-8/+8
So that --help-all print all sections in the same way as the Help and Application option groups.