Commit Graph

7297 Commits

Author SHA1 Message Date
Aleksander Morgado
37115dee93 api,introspection: new 'Signal' interface for extended signal quality 2013-08-21 12:33:09 +02:00
Aleksander Morgado
b61827f474 huawei: ignore ^NDISEND unsolicited messages 2013-08-21 11:16:15 +02:00
Aleksander Morgado
ef5aae5125 iface-modem-messaging: never add UNKNOWN to the lists of supported storages 2013-08-19 09:44:20 +02:00
Ben Chan
b83ef8b5e2 altair-lte: increase timeout for +CFUN=4 2013-08-15 13:26:13 -05:00
Aleksander Morgado
d42011d6bf build: include vapigen.m4 and introspection.m4
So that we don't require vala or g-i for building even when not wanting them.
2013-08-15 19:20:59 +02:00
Aleksander Morgado
663d496968 huawei: improve ^NDISSTATQRY parser for newer firmware
Newer firmware for Huawei devices will not split the IPv4 and IPv6 info in
different lines for the ^NDISSTATQRY reply; instead they will be included in the
same line. E.g. instead of

     ^NDISSTATQRY: 1,,,IPV4
     ^NDISSTATQRY: 0,33,,IPV6
     OK

We may have:

     ^NDISSTATQRY:0,,,"IPV4",0,33,,"IPV6"

Also note the optional spaces after the ':', and that in the new version the
strings are enclosed in double quotes.

https://bugzilla.gnome.org/show_bug.cgi?id=705339
2013-08-15 19:09:51 +02:00
Ben Chan
f9c75bc487 cli: fix help message for --3gpp-ussd-respond 2013-08-14 17:01:44 -05:00
Colin Walters
33a6cb2fa5 build: An even cleaner srcdir != builddir fix
Suggested-by: Dan Winship <danw@gnome.org>
2013-08-14 12:27:27 -05:00
Colin Walters
54fa505e67 build: Various srcdir != builddir fixes for gnome-ostree
The gnome-ostree build system does srcdir != builddir from git, not
quite like autotools does.
2013-08-14 12:05:21 -05:00
Dan Williams
65f633ab96 build: fix distcheck after Introspection changes 2013-08-14 10:37:45 -05:00
Aleksander Morgado
36fe2012cc license: update to latest gplv2 text 2013-08-14 15:43:28 +02:00
Christian Persch
81194337fe build: Error out if vala bindings are enabled but Makefile.vapigen not found
Cannot test this for enable_vala=auto since enable_vala has been set to
yes/no by this time.

Bug #705641.
2013-08-14 13:30:36 +02:00
Christian Persch
6eec45cb73 gitignore: Updated to ignore GIR and VAPI bindings generated files
Bug #705641.
2013-08-14 13:30:35 +02:00
Christian Persch
bfae863296 libmm-glib: Add vala bindings
Bug #705641.
2013-08-14 13:30:35 +02:00
Christian Persch
b8838b8882 libmm-glib: Generate GObject introspection information
Bug #705641.
2013-08-14 13:30:35 +02:00
Aleksander Morgado
d1d2868785 api: Change error enum nicks
Introspection can't copy with a '.' in the value nicks, so just remove those.

Note: This could be considered an ABI break!

Bug #705641.

Patch based on a previous one from Christian Persch <chpe@gnome.org>.
2013-08-14 13:30:35 +02:00
Christian Persch
0abba497ab libmm-glib: Fix and add introspection annotations
Bug #705641.
2013-08-14 13:30:35 +02:00
Ben Chan
34f6a2b63e huawei: implement modem reset via +CFUN=16 for MU736 2013-08-14 09:30:47 +02:00
Ben Chan
f515cd1d90 iface-modem: add mm_iface_modem_get_model helper to query model 2013-08-14 09:30:41 +02:00
Aleksander Morgado
c94943322b docs: add missing types 2013-08-13 16:05:07 +02:00
Fangxiaozhi (Franko)
e778283f55 huawei: enlarge the checking times for ndisstatqry in disconnecting
In sometimes, the disconnection of NDISDUP will spend more time than 10s.
So it is better to enlarge the checking times, such as up to 60 times.
2013-08-12 09:04:43 +02:00
Ben Chan
a82acb34ec huawei: implement modem reset 2013-08-12 08:57:43 +02:00
Dan Williams
1d3ec932d5 build: install mm-cdma-manual-activation-properties.h to includes dir 2013-08-08 09:45:16 -05:00
Aleksander Morgado
bb1d39cf7c broadband-modem-qmi: check MDN set after manual activation 2013-08-08 09:50:04 +02:00
Aleksander Morgado
512ef6970c broadband-modem-qmi: implement manual CDMA activation
We'll also now require libqmi 1.5 (git master), needed to handle the PRL TLV
in 'DMS Activate Manual'.

TODO: require 1.6 as soon as it is released.
2013-08-08 09:50:04 +02:00
Aleksander Morgado
4e3d0ec3fd mmcli,cdma: new '--cdma-activate-manual' action
Along with a new '--cdma-activate-manual-with-prl'.

These can be used to request CDMA Manual Activation, like:

$> sudo mmcli \
   -m 0 \
   --cdma-activate-manual="spc=123456,sid=ab,mdn=0123456789abcde,min=0123456789abcde"

Or:

$> sudo mmcli \
   -m 0 \
   --cdma-activate-manual="spc=123456,sid=ab,mdn=0123456789abcde,min=0123456789abcde" \
   --cdma-activate-manual-with-prl=/path/to/my/prl.data
2013-08-08 09:50:04 +02:00
Aleksander Morgado
5de526f708 libmm-glib,cdma: implement manual activation methods 2013-08-08 09:50:04 +02:00
Aleksander Morgado
b769d48ed8 iface-modem-cdma: use the new 'MMCdmaManualActivationProperties' 2013-08-08 09:50:04 +02:00
Aleksander Morgado
c0d4f3157a libmm-glib: new 'MMCdmaManualActivationProperties' helper object 2013-08-08 09:50:04 +02:00
Aleksander Morgado
5ba2c1d6cb introspection,api: document the expected parameters in Cdma.ActivateManual() 2013-08-08 09:50:04 +02:00
Ben Chan
ffac6f17b5 modem-helpers: fix parsing of CREG/CGREG/CEREG responses
The format of CREG/CGREG/CEREG responses is not very precisely defined
in or strictly enforced by the 3GPP specifications. That leads to the
fact that some modems put leading zeros in integer type fields (e.g.
<n>, <stat>, <AcT>), and not all modems put double quotes around string
type fields (e.g. <lac>, <ci>) in those C*REG responses.

For example, 0001 can be a valid value for both <stat> and <lac>. The
original C*REG parsing code in ModemManager could potentially interpret
'+CREG: <stat>,<lac>,<ci>,<AcT>' as '+CREG: <n>,<stat>,<lac>,<ci>'. This
patch addresses this issue by refining the regular expressions returned
by mm_3gpp_creg_regex_get() with the following assumptions:

1. If a modem puts leading zeros in integer type fields, it puts double
   quotes around string type fields.
2. If a modem omits double quotes around string type fields, it does not
   put leading zeros in integer type fields.
2013-08-06 16:14:35 -05:00
Ben Chan
755c61a2ff huawei: ignore ^PDPDEACT unsolicited messages 2013-08-06 16:06:01 -05:00
Ben Chan
8ff3f6703a huawei: handle whitespace in RSSI responses
This patch modifies the regular expressions for parsing ^RSSI, ^RSSILVL,
and ^HRSSILVL responses to handle any whitespace that is inserted
between the colon and the RSSI value.

The issue is identified by Dan Williams <dcbw@redhat.com>
2013-08-06 16:05:37 -05:00
Ben Chan
f2fd4d8de0 huawei: implement modem power up and down
This patch is originally developed by:
  Franko Fang <fangxiaozhi@huawei.com>

And then reviewed and updated by:
  Ben Chan <benchan@chromium.org>
2013-08-05 22:51:22 -05:00
Ben Chan
48fbe1a242 huawei: reset disconnect_pending to NULL when ^NDISSTATQRY fails 2013-07-31 16:59:27 +02:00
Dan Williams
965ef76547 serial: add logging to serial port open failures 2013-07-23 10:03:27 -05:00
Aleksander Morgado
74056e02ce build: fix dbus activation file generation
https://bugzilla.gnome.org/show_bug.cgi?id=704711
2013-07-23 11:04:29 +02:00
Aleksander Morgado
599b3dd830 build: post release version bump to 1.1.0 (development) 2013-07-19 11:14:09 +02:00
Aleksander Morgado
5c68a3686d release: bump version to 1.0.0 2013-07-19 10:00:01 +02:00
Aleksander Morgado
953b7df70c release: update NEWS 2013-07-19 09:59:50 +02:00
Aleksander Morgado
184c5a925a docs: update migration reference version number 2013-07-19 09:59:41 +02:00
Aleksander Morgado
1e69874e59 api,introspection: update interface version number 2013-07-19 09:59:21 +02:00
Aleksander Morgado
d90a6309fb broadband-modem-qmi: plug memleak when listing SMS messages 2013-07-18 22:44:49 +02:00
Aleksander Morgado
0245b6256a libmm-glib,firmware-properties: allow NULL when building dictionary 2013-07-18 20:08:36 +02:00
Aleksander Morgado
abce098cfe sms: initialize 'validity' property always to a default
When we're exposing not-yet-completed multipart messages, we need to provide a
correct value for the validity property, or gdbus may crash, see e.g.:

https://bugzilla.gnome.org/show_bug.cgi?id=704319
2013-07-17 09:03:16 +02:00
Aleksander Morgado
022f5bb490 mmcli,messaging: plug memleak 2013-07-15 13:42:00 +02:00
Ben Chan
48d35ee610 altair-lte: set serial port send delay to 0
With a non-zero send delay, the communication over the ttyACM port of
the modem is not very stable when USB auto-suspend is enabled for the
modem. The send delay is not necessary and thus removed by this patch.

Ori Inbar <ori.inbar@altair-semi.com> reported the issue and suggested
this fix.
2013-07-14 21:03:37 -05:00
Aleksander Morgado
5b3392e84b build: require libmbim by default, and explicitly log about --without-mbim 2013-07-14 17:13:07 +02:00
Aleksander Morgado
ac588e9d0e build: explicitly log about --without-qmi when looking for libqmi fails 2013-07-14 17:13:07 +02:00
Aleksander Morgado
19f07c12a1 sms-properties: fix introspection comment 2013-07-12 13:36:36 +02:00