Commit Graph

279 Commits

Author SHA1 Message Date
Aleksander Morgado c2d9b2ceb0 libqmi-glib,device: add documentation of when the new methods were introduced 2016-03-17 14:29:05 +01:00
Aleksander Morgado f7c7d433bb qmicli,test: add key/value parser tests 2016-03-04 12:52:02 +01:00
Dan Williams 3465107153 trivial: whitespace fixes 2016-03-03 13:26:44 -06:00
Bjørn Mork 6f988368fd qmicli: fix PLMN printing
BCD PLMNs with 2 digit MNCs will have an 'F' digit between
the MCC and the MNC.  This maps to \0, which would cause
a truncated result string with only the MCC.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-02-08 09:36:07 -06:00
Aleksander Morgado 2c0b445027 uim: implement 'UIM Change PIN' 2016-01-30 10:25:43 -08:00
Aleksander Morgado 517af334d1 uim: implement 'UIM Unblock PIN' 2016-01-30 10:25:41 -08:00
Aleksander Morgado 08ee7e9f1b uim: implement 'UIM Verify PIN' 2016-01-30 10:25:39 -08:00
Aleksander Morgado 83aa5613d7 uim: implement 'UIM Set PIN protection' 2016-01-30 10:25:37 -08:00
Aleksander Morgado 3be94e17b1 qmicli: new '--get-expected-data-format' & '--set-expected-data-format' actions
These new actions allow to query or update the data format expected by the
kernel in the WWAN interface associated to the cdc-wdm device used.
2016-01-24 16:56:25 +01:00
Aleksander Morgado 7af76cd9dd libqmi-glib,device: new getter/setter for the expected data format in the kernel
Userspace is in charge of defining the data format to be used in the WWAN net
interface, both in the device itself (e.g. through CTL or WDA requests) and also
in the kernel (e.g. through /sys/class/net/<WWAN>/qmi/raw_ip sysfs files).

These new API methods allow to query and modify the data format expected by the
kernel.
2016-01-24 16:56:25 +01:00
Dan Williams 4ff70bbd7e wds: add GetPDNThrottleInfo message 2016-01-11 12:12:18 -06:00
Dan Williams 6d77c4c4a4 libqmi-glib: add more Internal verbose call end reasons 2016-01-11 11:17:13 -06:00
Dan Williams 43b9574722 libqmi-glib,device: debug-print raw invalid QMI messages too 2016-01-06 10:57:28 -06:00
Džiugas Baltrūnas 9c6aae9002 libqmi-qmicli: extend --wds-start-network with 3gpp-profile and 3gpp2-profile parameters 2015-12-03 15:17:08 +01:00
Aleksander Morgado 5b6752d37d qmicli,wds: allow autoconnect settings in Start/Stop Network commands 2015-10-12 14:04:26 +02:00
Aleksander Morgado fe0d1020bf qmicli,wds: setup new key-value format based Start Network command
This would be equivalent to the new format used in mbimcli's --connect
operation, and will allow us to add new parameters easily.

Note that The old legacy format will still be supported, for backwards
compatibility.
2015-10-12 14:04:18 +02:00
Aleksander Morgado 84e48d7010 qmicli,wds: start network bundle creation in its own method 2015-10-12 14:04:08 +02:00
Aleksander Morgado 120306f8b6 qmicli,wds: allow specifying network data handle in hex
E.g. to give the global packet data handle, which is 0xFFFFFFFF.
2015-10-12 14:03:58 +02:00
Aleksander Morgado 47d83f020a wds: new 'WDS Set Autoconnect Setting' command support 2015-10-06 19:24:51 +02:00
Aleksander Morgado 7adcbf1234 wds: new 'WDS Get Autoconnect Setting' command support 2015-10-06 19:24:51 +02:00
Aleksander Morgado 239e624b1b libqmi-glib,qmicli: update copyright years
Also, remove some obsolete email addresses.
2015-10-06 19:24:51 +02:00
Aleksander Morgado 299a47aa8e qmicli: print LTE band description along with the EARFCN 2015-08-02 10:18:56 +02:00
Aleksander Morgado 543cf5c939 qmicli,wds: new '--wds-get-current-settings' action
Will print the IPv4 and IPv6 settings when connected. This information can be
used to statically set the network interface configuration, instead of relying
on a DHCP client.
2015-02-26 12:12:58 +01:00
Aleksander Morgado f7e2a3c598 qmicli: avoid redefining shutdown() 2015-02-26 10:29:03 +01:00
Aleksander Morgado 420800d7d5 qmicli: use common helper to print list of supported messages 2015-02-25 15:47:15 +01:00
Aleksander Morgado 18694ee79a wms: implement 'Get Supported Messages' 2015-02-25 15:47:15 +01:00
Aleksander Morgado f864133f8e wds: implement 'Get Supported Messages' 2015-02-25 15:47:15 +01:00
Aleksander Morgado 0625feef4d voice: implement 'Get Supported Messages' 2015-02-25 15:47:14 +01:00
Aleksander Morgado f1a6924fe3 uim: implement 'Get Supported Messages' 2015-02-25 15:47:14 +01:00
Aleksander Morgado 10f88c69ce nas: implement 'Get Supported Messages' 2015-02-25 15:47:14 +01:00
Aleksander Morgado ba1abb2cec wda: implement 'Get Supported Messages' 2015-02-25 15:47:14 +01:00
Aleksander Morgado 5dfa2198d0 dms: implement 'Get Supported Messages' 2015-02-25 15:47:14 +01:00
Aleksander Morgado 52a660aec9 qmicli: new WMS action group
Currently just supporting '--wms-reset' and '--wms-noop'.
2015-02-25 15:47:14 +01:00
Aleksander Morgado 33df1d40d0 libqmi-glib,message: fix big-endian handling of tlv->length (debian #778346)
tlv->length is little-endian, so access to it must be protected
with GUINT16_FROM_LE/GUINT16_TO_LE.  Fixes testcase failures
on PPC32.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778346
2015-02-24 14:45:15 -06:00
Aleksander Morgado 656b5d17d9 qmicli,dms: avoid shadowing global 'timezone' variable
qmicli-dms.c: In function ‘get_time_ready’:
    qmicli-dms.c:1585: error: declaration of ‘timezone’ shadows a global declaration
    /usr/include/time.h:292: error: shadowed declaration is here
    make[4]: *** [qmicli-qmicli-dms.o] Error 1
    make[4]: Leaving directory `/usr/src/libqmi-1.13.4/src/qmicli'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/usr/src/libqmi-1.13.4/src/qmicli'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/src/libqmi-1.13.4/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/libqmi-1.13.4'
    make: *** [all] Error 2
2015-02-24 01:26:06 +01:00
Aleksander Morgado 575aec009e qmi-proxy: new '--no-exit' option
This new option will make the proxy to avoid exiting when no connected clients
were found. Without this option, the proxy will end up exiting after 30s without
a valid QmiDevice connected to the proxy, e.g.:

  $ sudo /usr/libexec/qmi-proxy --verbose
  [23 feb 2015, 20:48:35] [Debug] creating UNIX socket service...
  [23 feb 2015, 20:48:35] [Debug] starting UNIX socket service at 'qmi-proxy'...
  [23 feb 2015, 20:49:05] [Debug] UNIX socket service at 'qmi-proxy' stopped
  [23 feb 2015, 20:49:05] [Debug] exiting 'qmi-proxy'...
2015-02-23 20:51:25 +01:00
Aleksander Morgado 721457bc19 qmi-proxy: fix program name in --version 2015-02-23 19:30:59 +01:00
Aleksander Morgado c26a795a6d qmicli: new '--voice-get-config' action 2015-02-07 20:42:44 +01:00
Aleksander Morgado 350cd9a06c voice: initial support for the Voice service 2015-02-07 20:42:44 +01:00
Aleksander Morgado 22628a69da dms: new 'DMS Set FCC Authentication' message
Dell-branded Sierra modems, like the Dell DW5570 (Sierra Wireless MC8805) need
this specific command before they can be put in 'online' mode:

$ sudo qmicli -d /dev/cdc-wdm1 --dms-get-operating-mode
[/dev/cdc-wdm1] Operating mode retrieved:
	Mode: 'low-power'
	HW restricted: 'no'

$ sudo qmicli -d /dev/cdc-wdm1 --dms-set-fcc-authentication
[/dev/cdc-wdm1] Successfully set FCC authentication

$ sudo qmicli -d /dev/cdc-wdm1 --dms-get-operating-mode
[/dev/cdc-wdm1] Operating mode retrieved:
	Mode: 'online'
	HW restricted: 'no'

https://bugzilla.kernel.org/show_bug.cgi?id=92101
2015-02-07 19:07:47 +01:00
Aleksander Morgado 7c5965baab qmicli: in '--dms-get-time' print date/time along with the gpstime epoch 2015-02-04 18:54:45 +01:00
Aleksander Morgado 9f7cd9f9b2 qmicli: new '--get-wwan-iface' command line option to print WWAN iface name 2015-01-28 20:25:06 +01:00
Aleksander Morgado f962c45e43 libqmi-glib,device: new property and getter to load the WWAN interface name
Each QMI control port has one and only one associated WWAN net port. This new
"device-wwan-iface" property and the qmi_device_get_wwan_iface() getter allow
to load the WWAN net port name by looking directly at sysfs.
2015-01-28 20:25:06 +01:00
Aleksander Morgado e02abb054b qmicli,wda: error out early if parsing the --set-data-format value fails 2015-01-27 18:18:21 +01:00
Aleksander Morgado 7fe12389a9 nas: fix QMI_NAS_SIM_REJECT_STATE_SIM_AVAILABLE enum name (api break)
Just a enum value rename, but breaks API.

Also, version bump to 0.13.3 to flag the exact version in which the change
was introduced.
2015-01-26 22:00:28 +01:00
Aleksander Morgado e97b1f3c91 qmicli: add command completion
https://bugs.freedesktop.org/show_bug.cgi?id=87900
2015-01-25 21:10:42 +01:00
Aleksander Morgado 844cd725ff libqmi-glib,message: add missing services in get_printable() and get_version_introduced() 2015-01-25 18:36:10 +01:00
Aleksander Morgado 4b3eeee8d3 libqmi-glib,wds: support 'UMTS Granted QoS' TLV in 'Get Current Settings' 2015-01-24 17:16:12 +01:00
Aleksander Morgado 2864b83961 libqmi-glib,wds: add missing 'underscore_name' in QmiWdsProfileType 2015-01-24 16:53:13 +01:00
Aleksander Morgado 022aad7633 libqmi-glib,test: unit test for the 'DMS Get Time' operation messages
'DMS Get Time' is the only message where we have a sized-guint: the 0x01
mandatory response TLV is 8-byte long (6 bytes for the time value, 2 bytes for
the source value).

This unit test uses the generic library APIs to check the correct parsing of
the 'DMS Get Time' response.
2015-01-22 20:36:09 +01:00