Commit Graph

956 Commits

Author SHA1 Message Date
Aleksander Morgado d4d7252086 pdc: no need to CamelCase parameter names 2016-10-26 14:59:43 +02:00
Aliaksandr Barouski 24cdbd32e9 pdc: new PDC service implementation
Added calls for configure hp4120 LTE modem
2016-10-26 14:59:43 +02:00
Aleksander Morgado fa39dc14a6 dms: new 'Change Device Download Mode' command
Based on a patch from Aliaksandr Barouski <alex.borovsky@gmail.com>

https://bugs.freedesktop.org/show_bug.cgi?id=96465
2016-10-24 12:31:52 +02:00
Dan Williams c847091b17 qmicli/nas: add --nas-get-rf-band-info 2016-10-11 11:43:51 -05:00
Dan Williams 4d9899b418 wds: make WDS Extended Error Code TLV a common-ref 2016-10-06 10:12:04 -05:00
Dan Williams d13c26c07d wds: add more TLVs and ModifyProfile/DeleteProfile requests 2016-10-06 10:12:04 -05:00
Dan Williams 7de80b7cf7 wds: add more Profile-related TLVs 2016-10-06 10:12:04 -05:00
Dan Williams ffa1cf2447 wds: move common Profile-related TLVs to common-refs 2016-10-06 10:12:04 -05:00
Dan Williams d90fae4dba wds: add Go Dormant, Go Active, and Get Dormancy Status 2016-10-06 10:12:04 -05:00
Dan Williams dda73618bd wds: add Set Event Report and Event Report Indication 2016-10-06 10:12:04 -05:00
Dan Williams e2f9d3d591 qmi-codegen: allow fields to be hidden with 'visible':'no'
We want to mark some TLV fields as reserved and not exposed through the
public API due to alignment or other issues.
2016-10-06 10:12:04 -05:00
Dan Williams 4c678418f3 qmicli: fix handling of unspecified ip_type in --wds-start-network
QMI_WDS_IP_FAMILY_UNSPECIFIED = 8 but ip_type gets initialized to
0, so the "IP Family Preference" was always being sent with an
unrecognized value.

Fixes: 81c21379 qmicli: add support for IP type to --wds-start-networ
2016-10-05 10:49:43 -05:00
Dan Williams b7bd0ffc1f docs: add missing reference for 'WDS create profile' 2016-10-04 07:28:51 -05:00
Dan Williams 4d373376b6 qmi-device: assume reasonable DMS version if WDS is high enough
Some devices (Quectel EC21) lie about their supported DMS version,
so assume a reasonable DMS version if the WDS version is high enough.
2016-09-30 09:25:01 -05:00
Dan Williams 66de6130ab qmicli,dms: report offline reason for LOW_POWER mode too
If the device cannot exit low-power mode it sometimes reports a reason,
like pri-image-misconfiguration.
2016-09-26 16:42:10 -05:00
Dan Williams b90b182a2a wds: add CreateProfile 2016-09-23 17:02:00 -05:00
Dan Williams 687fc4dae3 dms: Get Band Capabilities supported on DMS 1.1
But only seems supported on GSM/UMTS firmware.  Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 11:11:07 -05:00
Dan Williams df98c06057 dms: Read ERI File supported on DMS 1.1
Need CDMA/EVDO firmware for it though.  Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 10:59:53 -05:00
Dan Williams 927f794d59 dms: User Lock State messages supported on DMS 1.1
Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 10:58:17 -05:00
Dan Williams ca2b6da59d dms: Activation-related messages supported on DMS 1.1
But you usually need a CDMA/EVDO capable device and firmware to
use it.  Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 10:54:32 -05:00
Dan Williams ed186950dc dms: Get PRL Version supported on DMS 1.1
But of course you need a CDMA/EVDO capable device and firmware version
to read it.  Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 10:52:37 -05:00
Dan Williams b375e02b63 dms: Get Time supported on DMS 1.1
Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 10:47:39 -05:00
Dan Williams 3823e1b046 dms: Get Hardware Revision supported on DMS 1.1
Tested on Novatel USB1000:

[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1] QMI Device supports 6 services:
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    ctl (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wds (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    dms (1.1)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    nas (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    wms (1.0)
[07 Sep 2016, 10:43:19] [Debug] [/dev/cdc-wdm1]    pds (1.0)
2016-09-07 10:44:37 -05:00
Aliaksandr Barouski a5b57bda82 qmi-codegen: fixed multiple common-refs processing 2016-09-05 22:18:02 +02:00
Aleksander Morgado a309b4dd53 qmicli,dms: avoid pointer when reading enum array 2016-08-29 12:57:42 +02:00
Aleksander Morgado 6528ba5743 qmicli,dms: prefer '--dms-set-firmware-preference' instead of '--dms-set-firmware-pref' 2016-08-29 12:56:19 +02:00
Bjørn Mork 9038f49f3c qmicli: report which new images the firmware expects to download
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-08-29 12:52:50 +02:00
Bjørn Mork 417a1fea69 qmicli: preparing for firmware download support
The firmware preference must be set to the new firmware version
before a firmware download can take place.  Add support for setting
the firmware preference independently of the currently installed
images.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-08-29 12:52:43 +02:00
Dan Williams b2420e3386 qmicli: show IP type in --wds-start-network output 2016-08-23 10:08:26 -05:00
Bjørn Mork a9aab00392 nas: fix RX/TX mixup
Don't know what I was thinking here, but the referenced channels
are of course *RX* channels. None of my modems can do TX CA. Yet :)

Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-08-19 11:57:45 +02:00
Dan Williams 81c213791e qmicli: add support for IP type to --wds-start-network 2016-08-18 09:36:47 -05:00
Lubomir Rintel 2f18f241c6 build: fix a typo in mbim check 2016-07-08 17:28:20 +02:00
Aleksander Morgado e667da85e7 build: post release version bump to 1.17.0 2016-07-07 19:57:44 +02:00
Aleksander Morgado 7bdb9347cf release: bump version to 1.16.0 2016-07-07 19:37:53 +02:00
Aleksander Morgado e3ed95af83 NEWS: update for 1.16.0 2016-07-07 19:37:20 +02:00
Aleksander Morgado db7af576d8 build: distcheck always uses qmi-over-mbim support 2016-07-07 19:37:13 +02:00
Aleksander Morgado 234c67cde4 docs: add missing reference for 'NAS force network search' 2016-07-07 19:25:07 +02:00
Aleksander Morgado c10ecc559c libqmi-glib,device: avoid unref-ing MBIM message if none received 2016-07-07 19:18:31 +02:00
Aleksander Morgado b7ac386c87 libqmi-glib,device: fix build with mbim-qmux disabled 2016-07-07 19:18:31 +02:00
Aleksander Morgado bea38d44a4 libqmi-glib,version: new symbol to flag qmi-over-mbim support 2016-07-07 19:18:31 +02:00
Aleksander Morgado 8a96ab3ff9 libqmi-glib,mbim: run the mbim close operation synchronously 2016-07-07 19:18:31 +02:00
Aleksander Morgado 077d8d04ea libqmi-glib,mbim: don't create mbim device multiple times 2016-07-07 19:18:31 +02:00
Aleksander Morgado 769349deb1 libqmi-glib,mbim: rework transaction management on mbim backend
The lifecycle for transactions going through the MBIM backend is a bit different
w.r.t. the default one:

 * Given that libmbim has its own timeout management for the commands sent, we
   will rely on it instead of having our own. This means that we always assume
   that mbim_command() finishes, as it should be.

 * Instead of using the response QMI message to match a transaction, when using
   MBIM we use the transaction key given in the context passed to mbim_command()
   and by doing this we make sure that the transaction is always removed from
   the tracking table, regardless of whether the QMI message inside matched or
   not.
2016-07-07 19:18:30 +02:00
Aleksander Morgado 5aef8ba521 libqmi-glib,mbim: destroy mbim device on port close 2016-07-07 19:18:30 +02:00
Aleksander Morgado 632bebec98 libqmi-glib,device: include steps for mbim device create/open 2016-07-07 19:18:30 +02:00
Aleksander Morgado 6da98908f4 libqmi-glib,device: fix indentation 2016-07-07 19:18:30 +02:00
Aleksander Morgado f1f398ca7a build: update `--enable-mbim-qmux' rules
If libmbim 1.14.0 found, enable QMI over MBIM support.
2016-07-07 19:18:02 +02:00
Bjørn Mork 7f85b32e68 qmicli: support MBIM EXT_QMUX devices
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-07-07 19:16:17 +02:00
Bjørn Mork fb4b2c5619 libqmi: support MBIM EXT_QMUX service
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-07-07 19:16:17 +02:00
Aleksander Morgado fafafd0236 qmicli: remove unused user_data in qmi_device_new() callback
Reported-by: Jing Chen <jing.chen@spirent.com>
2016-07-07 18:29:10 +02:00