chromiumos/third_party/libqmi.git
15 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' master
Ben Chan [Fri, 16 Aug 2013 07:47:14 +0000 (00:47 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

15 months agoutils,qmi-network: program is GPLv2+ upstream
Aleksander Morgado [Wed, 14 Aug 2013 13:39:58 +0000 (15:39 +0200)]
utils,qmi-network: program is GPLv2+

15 months agolicense: update text to latest LGPLv2.1
Aleksander Morgado [Wed, 14 Aug 2013 13:34:14 +0000 (15:34 +0200)]
license: update text to latest LGPLv2.1

15 months agoqmicli,wds: fix following network status until disconnected
Aleksander Morgado [Tue, 13 Aug 2013 13:21:32 +0000 (15:21 +0200)]
qmicli,wds: fix following network status until disconnected

https://bugs.freedesktop.org/show_bug.cgi?id=67987

15 months agodocs: fix section title
Aleksander Morgado [Fri, 9 Aug 2013 08:27:22 +0000 (10:27 +0200)]
docs: fix section title

15 months agolibqmi-glib,device: fix type in documentation
Aleksander Morgado [Thu, 8 Aug 2013 21:50:18 +0000 (23:50 +0200)]
libqmi-glib,device: fix type in documentation

16 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' factory-4455.B factory-pit-4471.B firmware-pit-4482.B release-R30-4537.B stabilize-4443.B stabilize-4512.B
Ben Chan [Fri, 19 Jul 2013 16:26:45 +0000 (09:26 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: Id4ea6235247ff73f1378549a3078380332b83682

16 months agodms: fix JSON file indentation
Aleksander Morgado [Thu, 18 Jul 2013 09:22:07 +0000 (11:22 +0200)]
dms: fix JSON file indentation

16 months agodms: 'MN-HA key' and 'MN-AAA key' in 'DMS Activate Manual' need additional size prefix
Aleksander Morgado [Thu, 18 Jul 2013 09:21:53 +0000 (11:21 +0200)]
dms: 'MN-HA key' and 'MN-AAA key' in 'DMS Activate Manual' need additional size prefix

16 months agodms: 'SID' TLV in 'DMS Activate Manual' is a guint16, not a string
Aleksander Morgado [Thu, 18 Jul 2013 09:17:40 +0000 (11:17 +0200)]
dms: 'SID' TLV in 'DMS Activate Manual' is a guint16, not a string

16 months agodms: support TLV 0x13 (PRL) in 'DMS Activate Manual'
Aleksander Morgado [Mon, 15 Jul 2013 08:16:06 +0000 (10:16 +0200)]
dms: support TLV 0x13 (PRL) in 'DMS Activate Manual'

16 months agoqmi-codegen: allow handling built-in sequence numbers in arrays
Aleksander Morgado [Mon, 15 Jul 2013 08:15:23 +0000 (10:15 +0200)]
qmi-codegen: allow handling built-in sequence numbers in arrays

TLVs are really limited in size, so if you want to have truly long data passed
between host and modem, you may end up needing multiple QMI messages where the
long TLV is split in segments. Currently support this by handling a built-in
sequence number expected to be found between the array size prefix and the array
itself (see e.g. TLV 0x13 (PRL) in 'DMS Activate Manual'). This sequence number
can be enabled with the new 'sequence-prefix-format' keyword in the array
definition.

16 months agodms: no prerequisites in input bundles
Aleksander Morgado [Mon, 15 Jul 2013 07:30:16 +0000 (09:30 +0200)]
dms: no prerequisites in input bundles

16 months agobuild: fix distcheck, add missing json file
Aleksander Morgado [Wed, 10 Jul 2013 20:23:25 +0000 (22:23 +0200)]
build: fix distcheck, add missing json file

16 months agoqmicli,pbm: add sections when printing all capabilities
Aleksander Morgado [Fri, 5 Jul 2013 06:18:13 +0000 (08:18 +0200)]
qmicli,pbm: add sections when printing all capabilities

16 months agolibqmi-glib,device: add PBM support
Bjørn Mork [Thu, 4 Jul 2013 08:51:51 +0000 (10:51 +0200)]
libqmi-glib,device: add PBM support

Signed-off-by: Bjørn Mork <bjorn@mork.no>
16 months agoqmicli: new '--pbm-get-all-capabilities' action
Aleksander Morgado [Wed, 3 Jul 2013 18:31:45 +0000 (20:31 +0200)]
qmicli: new '--pbm-get-all-capabilities' action

16 months agopbm: implement 'Get All Capabilities' request/response
Aleksander Morgado [Wed, 3 Jul 2013 18:18:16 +0000 (20:18 +0200)]
pbm: implement 'Get All Capabilities' request/response

16 months agopbm: implement 'Get Capabilities' request/response
Aleksander Morgado [Wed, 3 Jul 2013 17:54:25 +0000 (19:54 +0200)]
pbm: implement 'Get Capabilities' request/response

16 months agopbm: setup generation of the PBM service support
Aleksander Morgado [Mon, 1 Jul 2013 09:05:10 +0000 (11:05 +0200)]
pbm: setup generation of the PBM service support

Only 'Indication Register' message for now.

16 months agoqmicli: new '--get-service-version-info'
Aleksander Morgado [Wed, 3 Jul 2013 20:11:21 +0000 (22:11 +0200)]
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)

16 months agolibqmi-glib,device: new method to query service version info
Aleksander Morgado [Wed, 3 Jul 2013 20:03:17 +0000 (22:03 +0200)]
libqmi-glib,device: new method to query service version info

17 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' factory-pit-4390.B firmware-falco_peppy-4389.B firmware-leon-4389.26.B firmware-wolf-4389.24.B
Ben Chan [Fri, 28 Jun 2013 07:13:07 +0000 (00:13 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: I177e94c7eff938fcc21b366031234126cda480b5

17 months agolibqmi-glib,device: plug memleak
Aleksander Morgado [Thu, 27 Jun 2013 08:55:03 +0000 (10:55 +0200)]
libqmi-glib,device: plug memleak

17 months agobuild: setup gtester based unit tests
Aleksander Morgado [Fri, 21 Jun 2013 08:18:00 +0000 (10:18 +0200)]
build: setup gtester based unit tests

17 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' release-R29-4319.B
Ben Chan [Wed, 19 Jun 2013 19:10:16 +0000 (12:10 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: Ie3b0f1879f0a3c8bf55b96f6f6f09ee0bd525793

17 months agoqmicli,wds: implement '--wds-get-packet-statistics' command
Aleksander Morgado [Wed, 19 Jun 2013 13:17:58 +0000 (15:17 +0200)]
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.

17 months agowds: implement "Get Packet Statistics" request/response
Aleksander Morgado [Wed, 19 Jun 2013 12:43:02 +0000 (14:43 +0200)]
wds: implement "Get Packet Statistics" request/response

17 months agolibqmi-glib: update list of QMI protocol errors
Aleksander Morgado [Tue, 18 Jun 2013 12:56:21 +0000 (14:56 +0200)]
libqmi-glib: update list of QMI protocol errors

17 months agocli,nas: implement '--nas-get-tx-rx-info' command
Aleksander Morgado [Tue, 18 Jun 2013 12:56:04 +0000 (14:56 +0200)]
cli,nas: implement '--nas-get-tx-rx-info' command

17 months agonas: implement "Get Tx Rx Info" request/response
Aleksander Morgado [Tue, 18 Jun 2013 12:54:23 +0000 (14:54 +0200)]
nas: implement "Get Tx Rx Info" request/response

17 months agobuild: fix builds with srcdir != builddir
Aleksander Morgado [Thu, 13 Jun 2013 11:36:30 +0000 (13:36 +0200)]
build: fix builds with srcdir != builddir

17 months agodocs: reorder version symbols
Aleksander Morgado [Thu, 13 Jun 2013 10:43:35 +0000 (12:43 +0200)]
docs: reorder version symbols

17 months agobuild: setup libtool versioning for libqmi-glib
Aleksander Morgado [Thu, 13 Jun 2013 10:11:36 +0000 (12:11 +0200)]
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.

17 months agolibqmi-glib,api: provide version info
Aleksander Morgado [Thu, 13 Jun 2013 09:53:43 +0000 (11:53 +0200)]
libqmi-glib,api: provide version info

17 months agorelease: bump version to 1.5.0 (development)
Dan Williams [Fri, 7 Jun 2013 16:46:58 +0000 (11:46 -0500)]
release: bump version to 1.5.0 (development)

17 months agorelease: bump version to 1.4.0
Dan Williams [Fri, 7 Jun 2013 16:37:57 +0000 (11:37 -0500)]
release: bump version to 1.4.0

17 months agobuild: update NEWS
Aleksander Morgado [Fri, 7 Jun 2013 13:40:10 +0000 (15:40 +0200)]
build: update NEWS

17 months agoMerge remote-tracking branch 'cros/upstream' to 'cros/master' factory-4290.B factory-pit-4280.B factory-spring-4262.B stabilize-4255.B stabilize-4287.B
Ben Chan [Mon, 3 Jun 2013 08:00:37 +0000 (01:00 -0700)]
Merge remote-tracking branch 'cros/upstream' to 'cros/master'

Change-Id: I4adf2adaede494dfc196e24632cdd1e07b1f11cf

17 months agonas: add Network Time indication
Dan Williams [Tue, 28 May 2013 16:25:43 +0000 (11:25 -0500)]
nas: add Network Time indication

17 months agoqmicli,dms: fix reading new PIN in '--dms-uim-change-pin'
Aleksander Morgado [Fri, 31 May 2013 12:28:28 +0000 (14:28 +0200)]
qmicli,dms: fix reading new PIN in '--dms-uim-change-pin'

Spotted by Rajiv Mohan <rajiv.mohan@wipro.com>

17 months agolibqmi-glib,utils: fix reading sized uint from Big Endian buffers
Aleksander Morgado [Tue, 28 May 2013 13:33:57 +0000 (15:33 +0200)]
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

17 months agotest-utils: fix LE and BE tests
Aleksander Morgado [Tue, 28 May 2013 12:43:28 +0000 (14:43 +0200)]
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

18 months agobuild: use -Wformat-security
Aleksander Morgado [Fri, 17 May 2013 21:05:24 +0000 (23:05 +0200)]
build: use -Wformat-security

18 months agogitignore: ignore .pyc files
Dan Williams [Fri, 10 May 2013 16:28:08 +0000 (11:28 -0500)]
gitignore: ignore .pyc files

18 months agobuild: update NEWS; add minimal README and ChangeLog
Dan Williams [Fri, 10 May 2013 16:27:02 +0000 (11:27 -0500)]
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.

18 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' factory-4128.B factory-spring-4131.B
Ben Chan [Fri, 10 May 2013 07:56:02 +0000 (00:56 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: I400f299c4fef607c39b24ebd33f27c22cde8127f

18 months agobuild: use AM_CPPFLAGS instead of INCLUDES
Aleksander Morgado [Fri, 10 May 2013 07:50:49 +0000 (09:50 +0200)]
build: use AM_CPPFLAGS instead of INCLUDES

Fixes recent automake warnings.

18 months agocli,nas: use '%u' for printing cell IDs
Ben Chan [Fri, 10 May 2013 07:33:41 +0000 (00:33 -0700)]
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

18 months agodocs: always generate docs at dist time
Yanko Kaneti [Mon, 6 May 2013 22:06:53 +0000 (17:06 -0500)]
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.

18 months agocli,nas: fix persistence technology preference reporting
Aleksander Morgado [Tue, 30 Apr 2013 13:45:44 +0000 (15:45 +0200)]
cli,nas: fix persistence technology preference reporting

19 months agodms: DMS v1.1 supports GetOperatingMode/SetOperatingMode
Dan Williams [Fri, 19 Apr 2013 22:27:02 +0000 (17:27 -0500)]
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.

19 months agocli: implement Set System Selection Preference
Dan Williams [Wed, 17 Apr 2013 15:44:23 +0000 (10:44 -0500)]
cli: implement Set System Selection Preference

20 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' release-R27-3912.B release-R28-4100.B stabilize-3912.79.B stabilize-4008.0.B stabilize-4035.0.B stabilize-4068.0.B stabilize-4100.38.B stabilize-spring-4100.53.B toolchainA toolchainB
Ben Chan [Thu, 21 Mar 2013 18:33:43 +0000 (11:33 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

20 months agocli: Add --dms-activate-manual
Arman Uguray [Wed, 20 Mar 2013 19:28:31 +0000 (12:28 -0700)]
cli: Add --dms-activate-manual

Added the --dms-activate-manual option to the client, which triggers
manual activation.

20 months agorelease: bump version to 1.3.0 (development)
Dan Williams [Wed, 20 Mar 2013 13:52:47 +0000 (08:52 -0500)]
release: bump version to 1.3.0 (development)

20 months agorelease: bump version to 1.2.0
Dan Williams [Tue, 19 Mar 2013 21:14:50 +0000 (16:14 -0500)]
release: bump version to 1.2.0

20 months agorelease: update NEWS
Dan Williams [Tue, 19 Mar 2013 21:14:39 +0000 (16:14 -0500)]
release: update NEWS

20 months agobuild: fix passing arguments to configure from autogen.sh
Evan Nemerson [Tue, 19 Feb 2013 11:13:05 +0000 (03:13 -0800)]
build: fix passing arguments to configure from autogen.sh

20 months agodms: activation code string needs explicit 1-byte length prefix
Aleksander Morgado [Wed, 6 Mar 2013 19:42:35 +0000 (20:42 +0100)]
dms: activation code string needs explicit 1-byte length prefix

Reported by Arman Uguray <armansito@google.com>

20 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' factory-spring-3842.B firmware-spring-3824.4.B firmware-spring-3824.55.B firmware-spring-3824.84.B firmware-spring-3824.B stabilize-3881.0.B
Ben Chan [Thu, 7 Mar 2013 01:03:50 +0000 (17:03 -0800)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: I668282a08373c80bec37e354a40167139945c267

20 months agocli: fix call to --dms-activate-automatic
Arman Uguray [Wed, 6 Mar 2013 21:36:41 +0000 (13:36 -0800)]
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.

21 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master'
Ben Chan [Fri, 22 Feb 2013 06:02:30 +0000 (22:02 -0800)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: Ifdc9baacffc2ab37edebb0e55b3488ad75313ec6

21 months agoqmi-network: Fix grabbing output from lines with spaces
Shawn J. Goff [Fri, 15 Feb 2013 20:18:31 +0000 (15:18 -0500)]
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).

21 months agocli,wds: make packet data handle formatting consistent
Shawn J. Goff [Fri, 15 Feb 2013 20:18:30 +0000 (15:18 -0500)]
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.

21 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master'
Ben Chan [Wed, 13 Feb 2013 19:27:56 +0000 (11:27 -0800)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: I56daebd047fa4a58329103b80b30f7d697899aea

22 months agocli,nas: fix 2 or 3 digit MNC printing in several actions
Aleksander Morgado [Tue, 22 Jan 2013 16:17:31 +0000 (17:17 +0100)]
cli,nas: fix 2 or 3 digit MNC printing in several actions

https://bugs.freedesktop.org/show_bug.cgi?id=59664

22 months agocli: all sources are GPLv2+
Aleksander Morgado [Mon, 14 Jan 2013 12:56:37 +0000 (13:56 +0100)]
cli: all sources are GPLv2+

22 months agocli: allow specifying auth info in the start network command
André Valentin [Wed, 9 Jan 2013 11:14:23 +0000 (12:14 +0100)]
cli: allow specifying auth info in the start network command

22 months agoqmicli: update timeout for the start network command
André Valentin [Wed, 9 Jan 2013 11:09:52 +0000 (12:09 +0100)]
qmicli: update timeout for the start network command

23 months agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' factory-3536.B release-R26-3701.B stabilize-3658.0.0 stabilize-3701.30.0 stabilize-3701.30.0b stabilize-3701.46.B stabilize-3701.81.B stabilize-bluetooth-smart toolchain-3701.42.B
Ben Chan [Thu, 27 Dec 2012 22:33:18 +0000 (14:33 -0800)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: Icd83ba97c5dcbf0aa09d9a364e6f3e582b3dc237

23 months agoqmi-codegen: clean up compiled python files
Marius Kotsbak [Mon, 24 Dec 2012 10:45:40 +0000 (11:45 +0100)]
qmi-codegen: clean up compiled python files

These caused problems for deb packaging, as their content depends on the Python
version used.

23 months agoqmi-codegen python3: change string.lower(str) to str.lower()
Shawn J. Goff [Mon, 17 Dec 2012 21:29:17 +0000 (16:29 -0500)]
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()/

23 months agoqmi-codegen python3: fix dict.has_key('key') to 'key' in dict
Shawn J. Goff [Mon, 17 Dec 2012 21:29:16 +0000 (16:29 -0500)]
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

23 months agoqmi-codegen python3: change string.replace() class method use to str.replace() instan...
Shawn J. Goff [Mon, 17 Dec 2012 21:29:15 +0000 (16:29 -0500)]
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(/

23 months agoqmi-codegen: fix some python3 compatibility issues
Dan Williams [Mon, 17 Dec 2012 17:37:31 +0000 (11:37 -0600)]
qmi-codegen: fix some python3 compatibility issues

Simple methods are no longer in the string module.

2 years agoMerge remote-tracking branch 'cros/upstream' into 'cros/master' release-R25-3428.B stabilize-3428.110.0 stabilize-3428.149 stabilize-3428.149.B stabilize-3428.193 stabilize2 toolchain-3428.65.B
Ben Chan [Tue, 20 Nov 2012 04:12:14 +0000 (20:12 -0800)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: Iba10654ab918e7c2e2a07ca400fbfe006c09e5af

2 years agogobi-api: add GobiAPI_2012-09-12-0719
Dan Williams [Mon, 12 Nov 2012 20:13:15 +0000 (14:13 -0600)]
gobi-api: add GobiAPI_2012-09-12-0719

2 years agorelease: bump version to 1.0.0
Dan Williams [Mon, 12 Nov 2012 18:23:05 +0000 (12:23 -0600)]
release: bump version to 1.0.0

2 years agorelease: update NEWS
Dan Williams [Mon, 12 Nov 2012 18:17:03 +0000 (12:17 -0600)]
release: update NEWS

2 years agolibqmi-glib,test: enable tests expecting warnings only if glib >= 2.34
Aleksander Morgado [Thu, 8 Nov 2012 19:44:31 +0000 (20:44 +0100)]
libqmi-glib,test: enable tests expecting warnings only if glib >= 2.34

2 years agoMerge remote-tracking branch 'cros/upstream' into 'cros/master'
Ben Chan [Sun, 4 Nov 2012 21:56:46 +0000 (13:56 -0800)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: I1228f9e659c278f64de5d25a160d604cce923804

2 years agonas: new 'QMI_NAS_DATA_CAPABILITY_NONE' enum value
Aleksander Morgado [Fri, 2 Nov 2012 13:11:36 +0000 (14:11 +0100)]
nas: new 'QMI_NAS_DATA_CAPABILITY_NONE' enum value

2 years agoqmi-codegen: translate the values of enums/flags in traces
Aleksander Morgado [Fri, 2 Nov 2012 12:13:47 +0000 (13:13 +0100)]
qmi-codegen: translate the values of enums/flags in traces

2 years agolibqmi-glib: make 'QmiCtlDataLinkProtocol' a enum instead of flags
Aleksander Morgado [Fri, 2 Nov 2012 12:13:04 +0000 (13:13 +0100)]
libqmi-glib: make 'QmiCtlDataLinkProtocol' a enum instead of flags

If the values are like flags, but mutually exclusive, just set it as an enum.

2 years agocli: log messages from the 'Qmi' domain
Aleksander Morgado [Fri, 2 Nov 2012 11:19:41 +0000 (12:19 +0100)]
cli: log messages from the 'Qmi' domain

2 years agodocs: add missing documentation for "NAS Get CDMA Position Info"
Aleksander Morgado [Fri, 2 Nov 2012 08:28:14 +0000 (09:28 +0100)]
docs: add missing documentation for "NAS Get CDMA Position Info"

2 years agoqmi-codegen: fix computation of expected TLV length when using strings
Aleksander Morgado [Fri, 2 Nov 2012 07:56:35 +0000 (08:56 +0100)]
qmi-codegen: fix computation of expected TLV length when using strings

2 years agonas: add Get CDMA Position Info
Dan Williams [Wed, 31 Oct 2012 19:12:14 +0000 (14:12 -0500)]
nas: add Get CDMA Position Info

Not sure what NAS version supports it, but at least NAS 1.3 is required.

2 years agolibqmi-glib,test: new test for messages with invalid TLVs
Aleksander Morgado [Mon, 29 Oct 2012 09:54:48 +0000 (10:54 +0100)]
libqmi-glib,test: new test for messages with invalid TLVs

2 years agoqmi-codegen: validate TLV before really reading it
Aleksander Morgado [Tue, 30 Oct 2012 14:08:02 +0000 (15:08 +0100)]
qmi-codegen: validate TLV before really reading it

Try to handle buggy firmware, or just make the library more robust, by
validating the read TLV before really reading it. If a TLV is not considered
valid, we just skip it for now.

E.g.: the "Detailed Service Status" TLV (0x21) in the "NAS Get Serving System"
message is supposed to be a sequence of 5 bytes, but some models (e.g. ZTE MF683)
end up sending only the first 4 bytes.

2 years agoRevert "libqmi-glib,message: include raw data buffer when building printable string"
Aleksander Morgado [Tue, 30 Oct 2012 15:24:16 +0000 (16:24 +0100)]
Revert "libqmi-glib,message: include raw data buffer when building printable string"

This reverts commit d89b9064afa991d5cc7737fa9b0b1b55c0e31158.

We already print the raw buffer when sending/receiving the message in QmiDevice,
which is actually better as we end up priting it *before* parsing it, so it's
much better for debugging purposes.

2 years agolibqmi-glib,test: include printable string in message tests
Aleksander Morgado [Tue, 30 Oct 2012 14:08:35 +0000 (15:08 +0100)]
libqmi-glib,test: include printable string in message tests

2 years agolibqmi-glib: define library G_LOG_DOMAIN
Aleksander Morgado [Tue, 30 Oct 2012 14:02:24 +0000 (15:02 +0100)]
libqmi-glib: define library G_LOG_DOMAIN

2 years agolibqmi-glib,utils: minor documentation fix
Aleksander Morgado [Tue, 30 Oct 2012 11:56:13 +0000 (12:56 +0100)]
libqmi-glib,utils: minor documentation fix

2 years agolibqmi-glib,message: include raw data buffer when building printable string
Aleksander Morgado [Mon, 29 Oct 2012 10:08:05 +0000 (11:08 +0100)]
libqmi-glib,message: include raw data buffer when building printable string

2 years agolibqmi-glib,device: print raw sent/received message before translating it
Aleksander Morgado [Mon, 29 Oct 2012 11:00:27 +0000 (12:00 +0100)]
libqmi-glib,device: print raw sent/received message before translating it

This will help us debug issues in the message translation.

2 years agolibqmi-glib,utils: no need to pass endianness when reading/writing single bytes
Aleksander Morgado [Mon, 29 Oct 2012 10:44:24 +0000 (11:44 +0100)]
libqmi-glib,utils: no need to pass endianness when reading/writing single bytes

2 years agoMerge remote-tracking branch 'cros/upstream' into 'cros/master'
Ben Chan [Fri, 26 Oct 2012 15:13:18 +0000 (08:13 -0700)]
Merge remote-tracking branch 'cros/upstream' into 'cros/master'

Change-Id: I35274a07e48ea4d14608faaf67244eb4174463ec

2 years agocli,wds: print connection status string instead of integer
Aleksander Morgado [Thu, 25 Oct 2012 10:31:03 +0000 (12:31 +0200)]
cli,wds: print connection status string instead of integer