Commit Graph

3500 Commits

Author SHA1 Message Date
Aleksander Morgado
69316289e8 sierra: start porting the Sierra plugin 2012-08-23 18:56:21 +02:00
Aleksander Morgado
b2ada906b0 nokia: fix SIM object creation 2012-08-23 18:56:21 +02:00
Aleksander Morgado
55699e6518 iridium: fix SIM object creation 2012-08-23 18:56:21 +02:00
Aleksander Morgado
1ac18a06bb api,dbus: 'ip-type' property now given as a MMBearerIpFamily (u)
Instead of using a predefined set of string values for 'ip-type' in
Modem.CreateBearer() and Simple.Connect(), we'll use an enumeration. The
implementation will then need to convert the requested IP family type to e.g.
the correct PDP type in 3GPP modems.

This change also consolidates the use of enums in dictionary properties when
possible to do so, as with the Rm Protocol.
2012-08-22 09:38:21 +02:00
Aleksander Morgado
c15525a1b3 libmm-common: default is to request IPv4 2012-08-21 18:46:54 +02:00
Aleksander Morgado
39b497c3e7 iridium: plug memleak 2012-08-21 18:45:51 +02:00
Aleksander Morgado
d26071325c novatel: plugin fully ported 2012-08-20 16:27:05 +02:00
Aleksander Morgado
678972b63a novatel: add detailed CDMA registration state checks 2012-08-20 16:27:05 +02:00
Aleksander Morgado
773ff03f91 novatel: custom signal quality loading for non-3GPP modems 2012-08-20 16:27:05 +02:00
Aleksander Morgado
953f787bf3 novatel: allowed modes and access tech loading only in non-CDMA modems 2012-08-20 16:27:05 +02:00
Aleksander Morgado
c9337cc8b9 novatel: configure SM storage as default always 2012-08-20 16:27:04 +02:00
Aleksander Morgado
348a80374a novatel: implement custom messaging unsolicited messages enabling 2012-08-20 16:27:04 +02:00
Aleksander Morgado
1931a69e50 novatel: implement current access technology loading 2012-08-20 16:27:04 +02:00
Aleksander Morgado
e150c4cf92 novatel: implement allowed mode loading/setting
Settings are given with the 'AT$NWRAT' arguments as follows:
  1,1: 2G allowed
  2,1: 3G allowed
  0,2: 2G and 3G allowed, none preferred
  1,2: 2G and 3G allowed, 2G preferred
  2,2: 2G and 3G allowed, 3G preferred
2012-08-20 16:26:55 +02:00
Aleksander Morgado
b8e5dbcaf4 novatel: flip secondary ports to AT mode during port setup 2012-08-20 16:26:55 +02:00
Aleksander Morgado
058fd0256d novatel: new `MMBroadbandModemNovatel' 2012-08-20 16:26:55 +02:00
Aleksander Morgado
56a7e40e37 novatel: start porting the Novatel plugin 2012-08-20 16:26:55 +02:00
Aleksander Morgado
eb71b9464d novatel-lte: reorganize code
Just to make it more aligned with how other plugins are structured.
2012-08-20 16:26:55 +02:00
Aleksander Morgado
b399a17163 novatel-lte: renamed the plugin to "Novatel LTE"
This plugin only handles the E362 right now.
2012-08-20 16:26:55 +02:00
Aleksander Morgado
84d205c9be plugin: new filters for forbidden product IDs/strings
Plugins may specify that specific vendor & product IDs or strings are not
supported. This is useful when plugins need to specify that they support
all devices of a given vendor except for some specific ones.
2012-08-20 16:26:55 +02:00
Aleksander Morgado
4e84cd241b plugin: fix icera filters when using the allowed product string filter 2012-08-20 16:26:55 +02:00
Aleksander Morgado
9512eda21d plugin: don't apply product ID filters if no vendor ID was retrieved 2012-08-20 16:26:55 +02:00
Ben Chan
7b13b5e1c0 broadband-bearer,icera: fix CID matching for unsolicited IPDPACT responses 2012-08-20 09:17:34 +02:00
Ben Chan
2b5fb682c6 icera: fix modem_load_current_bands and modem_set_bands
This patch modifies MMBroadbandModemIcera as follows:
- Change modem_load_current_bands to report only bands that are
  currently enabled
- Change modem_set_bands to handle setting ANY band in a way that no
  forbidden bands are activated.
2012-08-20 09:17:00 +02:00
Ben Chan
3955aab25b icera: add missing break statement in MMBroadbandBearerIcera set_property 2012-08-17 18:23:13 +02:00
Dan Williams
946dcca4fc qcdm: add some EVDO log item numbers 2012-08-15 12:18:59 -05:00
Ben Chan
7eb1782023 iface-modem: increase number of trials for PIN check from 3 to 6
In practice, it may take longer time for a SIM to become ready when the
modem interface tries to use AT+CPIN? to determine if the SIM is
PIN-locked. This patch increases the number of trials for PIN check to
address the issue.
2012-08-13 12:03:15 +02:00
Aleksander Morgado
6c9a7c5450 nokia: implement custom supported modes loading
Nokia handsets report incorrect modes in AT+WS46?, so just fully skip that.
2012-08-09 11:48:27 +02:00
Aleksander Morgado
1e687337c1 zte: plug memleak
The GError wasn't properly disposed.

Reported by: Ben Chan <benchan@google.com>
2012-08-09 09:33:23 +02:00
Dan Williams
1e286f80ea qcdm: interpret MCC value from StatusSnapshot command 2012-08-08 16:23:02 -05:00
Aleksander Morgado
36594dd9fb broadband-modem: fix GError disposal 2012-08-08 13:20:26 +02:00
Aleksander Morgado
45e8aa50df iface-modem-3gpp: when disabled, cleanup interface properties 2012-08-06 20:18:15 +02:00
Aleksander Morgado
278842108c iface-modem-3gpp: refactor registration sequences
Once upon a time it was a good idea to have separate steps for CS and PS related
actions, so that plugins could override specific steps with a great detail. That
idea turned out to be not very useful, as the only case which requires custom
CS/PS registration actions is the QMI-enabled modem, and that one has commands
to act on both registration actions at the same time. So, we now consolidate
all steps, so that the implementation of the interface needs to provide all the
logic to setup/enable/disable/cleanup/check registrations in each mode.

Also, we consolidate how the unsolicited registration messages are handled, so
that it's equivalent to other unsolicited messages:
 * 'Setup' will configure ports to process the unsolicited messages.
 * 'Enable' will tell the modem to send unsolicited messages.
 * 'Disable' will tell the modem not to send unsolicited messages.
 * 'Cleanup will configure ports to ignore the unsolicited messages.
2012-08-06 20:17:00 +02:00
Aleksander Morgado
01bb5cd660 iface-modem-cdma: new steps to enable/disable unsolicited events 2012-08-06 20:16:29 +02:00
Aleksander Morgado
779b293387 iface-modem-cdma: skip checks to see if unsolicited events are supported 2012-08-06 20:16:06 +02:00
Aleksander Morgado
4aaafc54c7 iface-modem-3gpp: removed the 'setup indicators' step
The previous logic would first request to check if indicators were supported,
and only then allow to setup/enable/cleanup/disable unsolicited events. This
behaviour is very specific to the generic 3GPP case, and therefore it shouldn't
be handled in the even more generic 3GPP interface. The logic is still kept,
but handled within the MMBroadbandModem object.
2012-08-06 20:15:41 +02:00
Aleksander Morgado
4d5892204d zte: use +CFUN=4 for powering down
Icera-based ZTE already has the same functionality coming from the parent
`MMBroadbandModemIcera' modem object.
2012-08-06 20:07:50 +02:00
Aleksander Morgado
f6415a71b6 device: keep all unsupported ports in a separate list
Ports being marked as unsupported should not be passed to the plugin specific
create_modem() or grab_port() methods.
2012-08-06 20:07:50 +02:00
Aleksander Morgado
1811bb015c plugin-manager: relaunch probing when suggestion comes to deferred tasks
If a port support task was deferred until suggested, do not assume that the
suggested plugin actually supports the port, instead re-launch support check.

This covers the cases where a net port appears in a modem which only supports
AT ports (e.g. Nokia case).
2012-08-06 20:07:50 +02:00
Aleksander Morgado
793218bfdb zte: plugin fully ported 2012-08-06 20:07:50 +02:00
Aleksander Morgado
73a420095f TODO: the ZTE MF637 doesn't like default setup fo messaging unsolicited messages 2012-08-06 20:07:49 +02:00
Aleksander Morgado
125f297434 zte: setup/cleanup unsolicited messages in Icera based modems 2012-08-06 20:07:49 +02:00
Aleksander Morgado
efe85fd1ab zte: use common unsolicited messages handler setup in Icera based modems 2012-08-06 20:07:49 +02:00
Aleksander Morgado
64dfa59c42 zte: use common unsolicited messages handler setup 2012-08-06 20:07:49 +02:00
Aleksander Morgado
a8516fa1f8 zte: new common code to setup unsolicited event handlers 2012-08-06 20:07:49 +02:00
Aleksander Morgado
1f2a7bd87c zte: try +CPMS? calls after SIM unlock until SIM gets ready 2012-08-06 20:07:49 +02:00
Aleksander Morgado
dcde1e0408 zte: carrier-detect disabled in serial ports 2012-08-06 20:07:49 +02:00
Aleksander Morgado
4cf4a98bba zte: support Icera-based modems
We request Icera support check during port probing, and we then decide which
modem object to create based on the check results.
2012-08-06 20:07:49 +02:00
Aleksander Morgado
855c0ec514 zte: implement access technology loading 2012-08-06 20:07:49 +02:00
Aleksander Morgado
169ccdf1d4 zte: implement allowed mode loading/setting 2012-08-06 20:07:49 +02:00