Commit Graph

627 Commits

Author SHA1 Message Date
Aleksander Morgado 6f2f579d14 pbm: implement 'Get All Capabilities' request/response 2013-07-04 13:25:03 +02:00
Aleksander Morgado 92337d60c7 pbm: implement 'Get Capabilities' request/response 2013-07-04 13:25:03 +02:00
Aleksander Morgado a212dfe758 pbm: setup generation of the PBM service support
Only 'Indication Register' message for now.
2013-07-04 13:25:03 +02:00
Aleksander Morgado 4bc0798c3e qmicli: new '--get-service-version-info'
$ sudo qmicli -d /dev/cdc-wdm0 --get-service-version-info
  [/dev/cdc-wdm0] Supported versions:
          ctl (1.3)
          wds (1.2)
          dms (1.1)
          nas (1.0)
          wms (1.0)
          pds (1.0)
          auth (1.0)
          cat (1.0)
          rms (1.0)
2013-07-04 09:38:17 +02:00
Aleksander Morgado 96d0e9bbe1 libqmi-glib,device: new method to query service version info 2013-07-04 09:28:01 +02:00
Aleksander Morgado 0092f2438b libqmi-glib,device: plug memleak 2013-06-27 10:55:03 +02:00
Aleksander Morgado 63288de52c build: setup gtester based unit tests 2013-06-21 10:18:00 +02:00
Aleksander Morgado 99cd546b9b qmicli,wds: implement '--wds-get-packet-statistics' command
E.g.:
    $ sudo qmicli -d /dev/cdc-wdm0 --wds-get-packet-statistics
    [/dev/cdc-wdm0] Connection statistics:
    	TX packets OK: 552
    	RX packets OK: 466
    	TX bytes OK: 108849
    	RX bytes OK: 187837

The output will ignore those stat values which are unsupported by the device.
2013-06-19 15:18:46 +02:00
Aleksander Morgado d8ae738b96 wds: implement "Get Packet Statistics" request/response 2013-06-19 15:18:46 +02:00
Aleksander Morgado ed47d531ad libqmi-glib: update list of QMI protocol errors 2013-06-18 15:26:58 +02:00
Aleksander Morgado 40857aa70d cli,nas: implement '--nas-get-tx-rx-info' command 2013-06-18 15:26:58 +02:00
Aleksander Morgado 72c14ee8b0 nas: implement "Get Tx Rx Info" request/response 2013-06-18 15:26:58 +02:00
Aleksander Morgado dcc66f2678 build: fix builds with srcdir != builddir 2013-06-13 13:36:30 +02:00
Aleksander Morgado 11b5a74c63 docs: reorder version symbols 2013-06-13 12:43:35 +02:00
Aleksander Morgado 493924b57b build: setup libtool versioning for libqmi-glib
Let it be 0.0.0 for now; we have not updated this in the past versions, but we
should do it from now on.
2013-06-13 12:11:39 +02:00
Aleksander Morgado 306a3c9d01 libqmi-glib,api: provide version info 2013-06-13 12:01:12 +02:00
Dan Williams eaa6bcd2a1 release: bump version to 1.5.0 (development) 2013-06-07 11:46:58 -05:00
Dan Williams 0ff926d101 release: bump version to 1.4.0 2013-06-07 11:37:57 -05:00
Aleksander Morgado b4052739a1 build: update NEWS 2013-06-07 15:40:10 +02:00
Dan Williams 70ef65c843 nas: add Network Time indication 2013-05-31 13:44:52 -05:00
Aleksander Morgado e49341b531 qmicli,dms: fix reading new PIN in '--dms-uim-change-pin'
Spotted by Rajiv Mohan <rajiv.mohan@wipro.com>
2013-05-31 14:28:28 +02:00
Aleksander Morgado 9cc1c7e779 libqmi-glib,utils: fix reading sized uint from Big Endian buffers
When reading a sized Little Endian uint from a buffer, we just need to read
N bytes from the buffer and place them at the beginning of a new 8-byte buffer,
(as if it were a guint64) and finally convert from LE to HE.

But when reading a sized Big Endian uint from a buffer, the N bytes that we read
from the beginning of the buffer need to be placed at the *end* of the new
8-byte buffer before converting from BE to HE.

Sized integers are used to read e.g. 6-byte integers, like part of the 'Device
Time' TLV in the 'DMS Get Time' call.

https://bugs.freedesktop.org/show_bug.cgi?id=65078
2013-05-31 08:12:23 +02:00
Aleksander Morgado 14c50e0126 test-utils: fix LE and BE tests
Added independent BE tests with input buffers given in BE. Once the values are
read by libqmi from the buffer, they will be always in host-endian, so we can
safely compare them without further modifications.

https://bugs.freedesktop.org/show_bug.cgi?id=64987
2013-05-31 08:11:17 +02:00
Aleksander Morgado ad53cbce3e build: use -Wformat-security 2013-05-17 23:05:24 +02:00
Dan Williams 485c4555d7 gitignore: ignore .pyc files 2013-05-10 11:28:37 -05:00
Dan Williams c7e8091a9a build: update NEWS; add minimal README and ChangeLog
Having a README is good, while some package building tools like
to have a ChangeLog, even if it's useless.
2013-05-10 11:28:37 -05:00
Aleksander Morgado 3dbee74f92 build: use AM_CPPFLAGS instead of INCLUDES
Fixes recent automake warnings.
2013-05-10 09:50:49 +02:00
Ben Chan 316fe6c2bf cli,nas: use '%u' for printing cell IDs
This patch fixes the following type mismatches in the format string for
printing cell IDs:

qmicli-nas.c:1271:71: error: format specifies type 'unsigned short' but the argument has type 'guint32' (aka 'unsigned int') [-Werror,-Wformat]
                    g_print ("\t\tCell ID: '%" G_GUINT16_FORMAT"'\n", cid);
                                            ~~~                       ^~~
qmicli-nas.c:1391:71: error: format specifies type 'unsigned short' but the argument has type 'guint32' (aka 'unsigned int') [-Werror,-Wformat]
                    g_print ("\t\tCell ID: '%" G_GUINT16_FORMAT"'\n", cid);
                                            ~~~                       ^~~
qmicli-nas.c:1505:71: error: format specifies type 'unsigned short' but the argument has type 'guint32' (aka 'unsigned int') [-Werror,-Wformat]
                    g_print ("\t\tCell ID: '%" G_GUINT16_FORMAT"'\n", cid);
                                            ~~~                       ^~~
qmicli-nas.c:1626:71: error: format specifies type 'unsigned short' but the argument has type 'guint32' (aka 'unsigned int') [-Werror,-Wformat]
                    g_print ("\t\tCell ID: '%" G_GUINT16_FORMAT"'\n", cid);
                                            ~~~                       ^~~

Bug reported on https://code.google.com/p/chromium/issues/detail?id=239736
2013-05-10 09:44:59 +02:00
Yanko Kaneti a2aea71428 docs: always generate docs at dist time
The pregenerated docs will be in the dist tarball, and will even
be installed with 'make install' when building the dist tarball.
2013-05-06 17:08:41 -05:00
Aleksander Morgado d9303fc141 cli,nas: fix persistence technology preference reporting 2013-04-30 15:46:25 +02:00
Dan Williams 243fddb23b dms: DMS v1.1 supports GetOperatingMode/SetOperatingMode
My Gobi 1K with 2008-era firmware and DMS v1.1 supports these, so
whatever docs said they required DMS 1.2 are wrong.
2013-04-19 17:27:02 -05:00
Dan Williams e384ad684c cli: implement Set System Selection Preference 2013-04-17 12:19:38 -05:00
Arman Uguray 8f8edb7cd3 cli: Add --dms-activate-manual
Added the --dms-activate-manual option to the client, which triggers
manual activation.
2013-03-21 09:50:10 +01:00
Dan Williams 11f35f578c release: bump version to 1.3.0 (development) 2013-03-20 08:52:47 -05:00
Dan Williams c188ed507d release: bump version to 1.2.0 2013-03-19 16:14:50 -05:00
Dan Williams 7cf8b966c8 release: update NEWS 2013-03-19 16:14:39 -05:00
Evan Nemerson 9009f42fbf build: fix passing arguments to configure from autogen.sh 2013-03-12 16:12:07 +01:00
Aleksander Morgado 8045711f3c dms: activation code string needs explicit 1-byte length prefix
Reported by Arman Uguray <armansito@google.com>
2013-03-07 09:09:54 +01:00
Arman Uguray 9e0a53e697 cli: fix call to --dms-activate-automatic
--dms-activate-automatic incorrectly calls
qmi_client_dms_get_activation_state. This patch corrects it
so that it calls qmi_client_dms_activate_automatic.
2013-03-06 15:53:47 -06:00
Shawn J. Goff d106b89b7b qmi-network: Fix grabbing output from lines with spaces
The qmi-network script used awk with a field separator of ":". The
output looked like key: 'value'. The second field in this case includes
a space at the beginning. This was making the 'status' command fail.

Now, we account for the space. It is now also not dependent on awk
(this can matter on embedded systems).
2013-02-15 15:12:12 -06:00
Shawn J. Goff 70b0d9fd9e cli,wds: make packet data handle formatting consistent
Other values are surrounded by single quotes. The debug test in
utils/qmi-network also shows the output in quotes.
2013-02-15 15:10:05 -06:00
Aleksander Morgado 9e60ef6c0f cli,nas: fix 2 or 3 digit MNC printing in several actions
https://bugs.freedesktop.org/show_bug.cgi?id=59664
2013-01-22 17:17:31 +01:00
Aleksander Morgado a5631ead91 cli: all sources are GPLv2+ 2013-01-14 13:56:37 +01:00
André Valentin d4057ebd8b cli: allow specifying auth info in the start network command 2013-01-09 12:14:23 +01:00
André Valentin e380940cc4 qmicli: update timeout for the start network command 2013-01-09 12:09:52 +01:00
Marius Kotsbak 1822155d25 qmi-codegen: clean up compiled python files
These caused problems for deb packaging, as their content depends on the Python
version used.
2012-12-24 15:20:06 +01:00
Shawn J. Goff 725ef97dfd qmi-codegen python3: change string.lower(str) to str.lower()
The string.lower(str) class method is no longer available.

sed regex:
s/string\.lower(\(.*\))/\1.lower()/
2012-12-17 17:00:20 -06:00
Shawn J. Goff 2a9bb58bd2 qmi-codegen python3: fix dict.has_key('key') to 'key' in dict
Python 3 no longer supports the has_key() method.

sed regex:
s/\([^ ]\+\)\.has_key(\([^)]*\))/\2 in \1/g
2012-12-17 16:59:48 -06:00
Shawn J. Goff 31e3155c41 qmi-codegen python3: change string.replace() class method use to str.replace() instance method
Python 3 doesn't support the replace class method; it's now an instance method only.
string.replace(object, old, new) changes to object.replace(old, new)

sed:
s/string\.replace(\([^,]*\), /\1.replace(/
2012-12-17 16:59:35 -06:00
Dan Williams 01becf82d5 qmi-codegen: fix some python3 compatibility issues
Simple methods are no longer in the string module.
2012-12-17 11:37:31 -06:00