Commit Graph

7297 Commits

Author SHA1 Message Date
Ben Chan
1e8baaf7a2 sim-mbim: implement operator identifier and name loading 2013-12-03 10:11:16 -06:00
Dan Williams
1b34fe6c51 broadband-bearer-qmi: ensure errors are cleared before re-using them
If the bearer doesn't have one of IPv4 or IPv6 configuration, then the
qmi_message_wds_get_current_settings_output_get_ip*_address() functions
will return FALSE with a filled error, which was not cleared.

This fixes a glib warning message about overwriting an already-filled
GError.
2013-12-01 14:20:19 -06:00
Aleksander Morgado
c30a8f67ef base-modem: also release cdc-wdm ports 2013-11-22 15:00:52 +01:00
Ben Chan
6d251daf47 cli: print 'Bearers' property in Modem interface 2013-11-22 08:35:53 +01:00
Ben Chan
e438221258 libmm-glib: add methods to retrieve 'Bearers' property in Modem interface 2013-11-22 08:35:41 +01:00
Aleksander Morgado
a787d1bbb8 docs,libmm-glib: add missing methods for the new properties 2013-11-21 12:46:05 +01:00
Aleksander Morgado
f7546ad824 introspection,api: new 'Messages' property in the Messaging interface
https://bugzilla.gnome.org/show_bug.cgi?id=712276
2013-11-21 11:36:21 +01:00
Aleksander Morgado
7f442b777c introspection,api: new 'Bearers' property in the Modem interface
https://bugzilla.gnome.org/show_bug.cgi?id=712276
2013-11-21 10:50:49 +01:00
Thieu Le
c21709b32e altair-lte: add SIMREFRESH support
Register for SIMREFRESH event and reload own numbers and reregister
modem with network when this happens.
2013-11-21 10:48:53 +01:00
Aleksander Morgado
5e7fee1d11 build: use 'g_cclosure_marshal_generic' by default
Avoid custom marshalers, and just use libffi-based 'g_cclosure_marshal_generic'.
2013-11-20 15:17:09 +01:00
Aleksander Morgado
fe744b4534 base-modem: fix port validity checks 2013-11-20 15:00:07 +01:00
Aleksander Morgado
974408760c introspection,api: fix Messaging documentation
We don't have a Completed signal.
2013-11-15 19:35:17 +01:00
Aleksander Morgado
85d5d96824 port: remove 'carrier-detect' property
It is no longer used since commit 736aa0d2d.
2013-11-15 17:25:33 +01:00
Prathmesh Prabhu
3d4c143b40 altair-lte: early fail connect/disconnect attempts when out of coverage
A firmware bug in Altair ALT3100 bricks the modem when
 - The modem is out of coverage (Registration state is unknown (CEREG: 4))
 - A disconnect attempt is made using the AT%DPDNACT command.

This patch prevents this situation by failing the connect/disconnect attempts in
the altair plugin when registration state is unknown, without attempting to
connect/disconnect the modem.
2013-11-08 08:48:58 +01:00
Prathmesh Prabhu
3c6428fa58 bearer: notify final disconnect status using mm_bearer_report_connection_status
Some MMBearer methods to disconnect the bearer assume that the bearer is
disconnected even if the operation fails in a subclass. This leaves MMBearer
and MMBroadbandBearer states out of sync.

This patch notifies the bearer object of the final disconnection using
mm_bearer_report_connection_status. This gives the subclasses a chance to update
their state even when the disconnection attempt fails.
2013-11-08 08:45:38 +01:00
Aleksander Morgado
1b3114a0f9 modem-helpers: handle +CGDCONT=? replies with single context
https://bugzilla.gnome.org/show_bug.cgi?id=708983
2013-11-01 15:50:12 +01:00
Aleksander Morgado
04b52d590f tests: enable logging if 'ENABLE_TEST_MESSAGE_TRACES' is defined 2013-11-01 15:50:09 +01:00
Aleksander Morgado
deaeeec367 x22x: handle QMI modems
With some bits and pieces developed by Dan Williams <dcbw@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=710439
2013-10-31 17:12:24 +01:00
Aleksander Morgado
fcc2b1be2c altair-lte: fix LDFLAGS in the helper tests 2013-10-31 11:33:26 +01:00
Aleksander Morgado
e9523a6abd huawei: clear only once the timeout to wait for the first interface
As soon as we get a match between the current interface being probed, and the
first expected interface to probe, clear the timeout. But this doesn't mean that
this interface being probed will be the correct one, so it may be the case that
we end up expecting a new first interface and probing another one.

With an example probably seen better...

Modem appears with interfaces 2, 3 and 4.

1. We first try to look for interface 0, which is not in the set:
  1.1. Probing interfaces 2, 3 and 4 get deferred.

2. First-interface timeout happens because interface 0 doesn't appear, so we
switch to wait for interface 1:
  2.1 Probing interfaces 2, 3 and 4 get deferred.

3. First-interface timeout happens because interface 1 doesn't appear, so we
switch to wait for interface 2:
  3.1. We get a match on interface 2, which exists. We now remove the
       first-interface timeout and start running the init sequence there.
  3.2. Probing interfaces 3 and 4 get deferred.

4. Init sequence in interface 2 fails, because it is not an AT port, so we
switch to wait for interface 3:
  3.1. We get a match on interface 3, which exists. We do *not* need to remove
now the first-interface timeout because this interface we are testing is
actually the second one which we tried.

So, just check whether the timeout exists or not, and if it exists remove it.
Yeah, this commit just fixes a warning at the end.
2013-10-30 20:18:11 +01:00
Aleksander Morgado
6a26ad7b53 blacklist: include the whole Openmoko VID 2013-10-30 16:12:06 +01:00
Aleksander Morgado
b09044bcb3 plugin: for non-AT ports, don't expect vendor/product string probing
When running the pre-probing VID/PID filters, the ports were not filtered out if
the plugin had configured post-probing vendor/product string filters. But, these
post-probing filters are only applicable to AT ports.

From now on, this logic will not be applied to non-serial ports. In other words,
pre-probing VID/PID filters applied to non-serial ports will always result in
the port being filtered out or being allowed, regardless of any additional
vendor/product string post-probing filter configured by the plugin.

https://bugzilla.gnome.org/show_bug.cgi?id=710437
2013-10-28 18:13:14 +01:00
Aleksander Morgado
9c2be510f6 build: ignore built translation files 2013-10-28 17:57:43 +01:00
Aleksander Morgado
c65c01703b mtk: fix GOTO tag in udev rules 2013-10-28 17:51:02 +01:00
Yuri Chornoivan
51b4ab44f1 po: add Ukrainian translation (bgo #710513) 2013-10-25 17:51:12 -05:00
Dan Williams
c431fb8208 blacklist/greylist: add more GPS devices (rh #1023234)
Attempt to blacklist entire drivers that we know aren't modems,
and add a sprinkling of specific devices too.
2013-10-25 16:25:14 -05:00
Aleksander Morgado
adc7df200f sms-part-cdma,test: new tests for Latin and Unicode encodings 2013-10-25 19:49:57 +02:00
Aleksander Morgado
c669464eec sms-part-cdma: fix log message 2013-10-25 19:49:56 +02:00
Aleksander Morgado
364df3106a sms-part-cdma: improve logging when creating PDUs 2013-10-25 19:49:56 +02:00
Aleksander Morgado
80f55923ed sms-part-cdma: support parsing SMS with Unicode encoding 2013-10-25 19:49:56 +02:00
Aleksander Morgado
66f134b7bd sms-part-cdma: support generating SMS with Latin or Unicode encodings 2013-10-25 19:49:56 +02:00
Aleksander Morgado
3174b7b73f sms-part-cdma: support receiving SMS with Latin encoding 2013-10-25 19:49:56 +02:00
Aleksander Morgado
57882f6dad sms: decide whether to create a 3GPP2 or 3GPP SMS based on caps
Don't rely on receiving a Teleservice ID. If none received, and the modem is
CDMA-only, default to WMT.
2013-10-25 19:49:56 +02:00
Aleksander Morgado
43694e2677 sms: unknown delivery state in newly created SMS objects 2013-10-25 19:49:56 +02:00
Aleksander Morgado
0341c1663c sms: handle CDMA SMS when creating new ones from MMSmsProperties 2013-10-25 19:49:56 +02:00
Aleksander Morgado
86795b928e libmm-glib: allow new 'teleservice-id' and 'service-category' keywords in MMSmsProperties 2013-10-25 19:49:54 +02:00
Aleksander Morgado
663017a3d2 sms: clear generated parts when storing/sending fails 2013-10-25 19:47:20 +02:00
Aleksander Morgado
bd05787b51 sms-qmi: check whether the modem supports the specific SMS type 2013-10-25 19:47:20 +02:00
Aleksander Morgado
b728b14efb sms: only set concat reference on multipart messages 2013-10-25 19:47:19 +02:00
Aleksander Morgado
9ed42af537 sms: handle CDMA SMS part creation 2013-10-25 19:47:19 +02:00
Aleksander Morgado
5267cf6f4a cli,sms: print properties just when they are available
The logic to decide whether a property is valid in a given PDU type is kind of
fuzzy for 3GPP2 as it is currently implemented; so just print whatever we have
in the interface.
2013-10-25 19:47:19 +02:00
Aleksander Morgado
7a56b143aa sms-qmi: handle CDMA SMS messages 2013-10-25 19:47:19 +02:00
Aleksander Morgado
2eb5e0d578 sms-part-cdma: new CDMA SMS creator
Currently very limited:
 * Only WMT teleservice.
 * Only DMTF-encoded numbers.
 * Only either raw binary data or ASCII-7 text.
2013-10-25 19:47:19 +02:00
Aleksander Morgado
cadbc0412d sms-part-3gpp: ensure PDU type in part is the correct one when building SUBMIT 2013-10-25 19:47:19 +02:00
Aleksander Morgado
3a6bdabcdf sms-part-cdma: consolidate logging 2013-10-25 19:47:19 +02:00
Aleksander Morgado
49ab6ce980 sms-part-cdma: read 7-bit ASCII text or raw data 2013-10-25 19:47:19 +02:00
Aleksander Morgado
aba7efb615 broadband-modem-qmi: add CDMA SMS parts if found 2013-10-25 19:47:19 +02:00
Aleksander Morgado
e493292b7a tests: new CDMA SMS part tester 2013-10-25 19:47:19 +02:00
Aleksander Morgado
c440f121cc tests: rename 3GPP SMS part tester 2013-10-25 19:47:19 +02:00
Aleksander Morgado
5ecdae8dc8 sms-part-cdma: new CDMA SMS parser 2013-10-25 19:47:18 +02:00