Commit Graph
1214 Commits
Author SHA1 Message Date
Aleksander Morgado e2a5ab250e iface-modem-location: include policy authorization checks 2012-03-16 14:53:16 +01:00
Aleksander Morgado 1d1936e1ce iface-modem-3gpp-ussd: include policy authorization checks 2012-03-16 14:53:16 +01:00
Aleksander Morgado b4bed06f98 bearer: include policy authorization checks 2012-03-16 14:53:16 +01:00
Aleksander Morgado 454e3ab361 sim: include policy authorization checks 2012-03-16 14:53:16 +01:00
Aleksander Morgado da0aa7af2a iface-modem-cdma: include policy authorization checks 2012-03-16 14:53:15 +01:00
Aleksander Morgado 71a3de4486 iface-modem-3gpp: include policy authorization checks 2012-03-16 14:53:15 +01:00
Aleksander Morgado 6a655f5daf iface-modem-simple: include policy authorization checks 2012-03-16 14:53:15 +01:00
Aleksander Morgado 2240747715 iface-modem: include policy authorization checks 2012-03-16 14:53:15 +01:00
Aleksander Morgado d5deb2bb14 manager: use new simplified authentication setup 2012-03-16 14:53:15 +01:00
Aleksander Morgado 3e5b42569b base-modem: use new simplified authentication setup 2012-03-16 14:53:15 +01:00
Aleksander Morgado 089a983850 auth: refactor and simplify authentication related setup
We get rid of the MMAuthRequests; and we leave up to the caller and user of the
MMAuthProvider the handling of request cancellations through the provided
GCancellable.

Also made GIO-async-friendly methods.
2012-03-16 14:53:15 +01:00
Aleksander Morgado 7316f4645b iface-modem-3gpp-ussd: fix copyrights 2012-03-16 14:53:14 +01:00
Aleksander Morgado e992d5cbd1 charsets: fix compilation with -Werror=maybe-uninitialized 2012-03-16 14:28:15 +01:00
Aleksander Morgado 7a892b74cb build: don't build the MMCallbackInfo, we're now fully GIO-Async instead 2012-03-16 14:28:15 +01:00
Aleksander Morgado 680e292914 build: fix header dependencies
We shouldn't depend on any header file from the previous implementation.
2012-03-16 14:28:15 +01:00
Aleksander Morgado 4de848de39 tests,sms: print traces if enabled during compilation 2012-03-16 14:28:15 +01:00
Aleksander Morgado 2522acf899 tests,sms: refactor SMS part related tests
Now using the MMSmsPart setup.
2012-03-16 14:28:15 +01:00
Aleksander Morgado 5bee67c032 core: use GDBusMethodInvocation in the auth API 2012-03-16 14:28:15 +01:00
Aleksander Morgado 5f167fd199 Revert "core: avoid using DBusGMethodInvocation in auth API"
This reverts commit 013fd179f458d87bba9fd7657ffe1bd90169f231.

We will start using GDBus-only based code from now on.
2012-03-16 14:28:15 +01:00
Aleksander Morgado 080d046e64 iface-modem: load allowed/preferred modes during modem enabling 2012-03-16 14:28:15 +01:00
Aleksander Morgado 1359c0a928 modem-helpers: updated the string to access technology converter
We can now return a mask of flags specifying more than one access technology,
and therefore the order is not really important any more, unless for special
cases like looking for substrings of valid expected strings (e.g "HSPA" and
"HSPA+").

Also, add "LTE" in the list of expected strings.
2012-03-16 14:28:14 +01:00
Aleksander Morgado 4315208cfa iface-modem-cdma: include in the API the mask of all CDMA access technologies 2012-03-16 14:28:14 +01:00
Aleksander Morgado 049d4434f9 iface-modem-3gpp: include in the API the mask of all 3GPP access technologies 2012-03-16 14:28:14 +01:00
Aleksander Morgado f6b6688cce broadband-modem: new method to convert from UTF-8 to the charset in the modem 2012-03-16 14:28:13 +01:00
Aleksander Morgado 3028126bd2 charsets: new UTF-8 to given charset converter
UCS-2 strings are always hex-converted.
2012-03-16 14:28:13 +01:00
Aleksander Morgado a0583a4687 broadband-modem: expose the current charset to UTF-8 converter
So that subclasses can also use it.
2012-03-16 14:28:13 +01:00
Aleksander Morgado 3595b33648 iface-modem: load current bands during modem enabling 2012-03-16 14:28:13 +01:00
Aleksander Morgado 09d2f062c7 api,dbus: rename AllowedBands' to just Bands'
ModemManager will load:
  1) The list of supported bands. Note that this doesn't mean that any possible
     combination of bands is supported, as modems may support only specific
     combinations, but at least gives a rough idea of what the modem is capable
     of handling.

  2) The list of CURRENT bands. There is no such "Allowed" bands, as we do with
     modes, modems will have a specific set of bands being currently used, which
     will be reported in the `Bands' property.

If the modem allows modifying the list of bands to use, this can be done with
the `SetBands()' method. If the modem doesn't support using a specific
combination of bands, this method will report an error.
2012-03-16 14:28:13 +01:00
Aleksander Morgado c8f525ee47 api,header: added new Iridium capability 2012-03-15 14:15:07 +01:00
Aleksander Morgado f72f68b311 broadband-modem: allow no whitespaces before CPIN? reply value 2012-03-15 14:15:06 +01:00
Aleksander Morgado 2a12322a80 modem-helpers: allow leading zeroes in CREG/CGREG responses 2012-03-15 14:15:06 +01:00
Aleksander Morgado f0d516e556 broadband-modem: implement default enabling of SMS indications 2012-03-15 14:15:06 +01:00
Aleksander Morgado 3dd5ec64cc iface-modem-messaging: need to enable/disable SMS indications 2012-03-15 14:15:06 +01:00
Aleksander Morgado 7fdd08c02e api,dbus: new `IpTimeout' property in the Bearer interface
This IpTimeout property will be read by NetworkManager, and used as the time to
wait for pppd to establish the IP configuration (20s by default).
2012-03-15 14:15:06 +01:00
Aleksander Morgado dc1df5bf2f iface-modem-simple: SIM-PIN2 locking does not prevent from connecting 2012-03-15 14:15:06 +01:00
Aleksander Morgado c89fd703bb sim: allow subclasses to specify they can't load property values 2012-03-15 14:15:06 +01:00
Nathan Williams 3c41ce5d8b api,dbus: new `Command' method in the API to send arbitrary AT commands
BUG=chromium-os:25348
TEST="mmcli -m 0 --command='E0'"
Change-Id: I320587560fde5780f9d5a4998e32364d36a71ed7
2012-03-15 14:15:06 +01:00
Aleksander Morgado 54c2daf937 plugin-base: filters for product ID/string also require vendor ID/string checks 2012-03-15 14:15:06 +01:00
Aleksander Morgado 1f3e67775c core: new private boxed types for string and uint16 pairs 2012-03-15 14:15:05 +01:00
Aleksander Morgado 85dc060c82 manager: print modem debug info as soon as it gets exported 2012-03-15 14:15:05 +01:00
Aleksander Morgado 26ac82f607 broadband-modem: minor indentation fixes 2012-03-15 14:15:05 +01:00
Aleksander Morgado 2000331f86 broadband-bearer: avoid double free
Don't free an error which is taken by the async result.
2012-03-15 14:15:05 +01:00
Aleksander Morgado 21a722b616 core: don't pass primary port to interface initializations
They will all get it themselves.
2012-03-15 14:15:05 +01:00
Aleksander Morgado 3de4a29963 broadband-modem: run setup of all ports as first step in initialization
This is run always once all ports grabbed and organized.
2012-03-15 14:15:05 +01:00
Aleksander Morgado 8b7b614105 core: rework port grabbing and organization
Make port roles more flexible.  We have modems that do PPP
on interfaces other than the primary interface, and that
wasn't possible with the old code.  So clean up all that
logic and move the port organization code into the core
so we can reduce code in the plugins.

In the new world order, the plugins say whether the port
is a QCDM port, an AT port, or ignored.  If it's an AT
port the plugins get to tag it as primary, secondary, or
PPP, or any combination of the 3.  This allows for modems
where PPP should really be done on the secondary port
(Huawei E220, Sierra devices) so that the primary port
stays open for command and status.

After all ports are grabbed by the generic classes, they get
"organized", which assigns various ports to the roles of
PRIMARY, SECONDARY, DATA, and QCDM based on specific rules
and hints that the plugin provided (which are expressed as
MMAtPortFlags).

The plugin code is responsible for determining the port
hints (ie MMAtPortFlags) at probe time, instead of having
a combination of the plugin and the modem class do the
job.  This simplifies things greatly for the plugins at
the expense of more complicated logic in the core.

This is the port of commit 96505d42ed62327101dcee7c2bf31177b0bb1c9f
to the 06-api branch.
2012-03-15 14:15:05 +01:00
Aleksander Morgado 0b39bf91ec at-serial-port: new AT port specific flags 2012-03-15 14:15:05 +01:00
Aleksander Morgado 11962711e4 at-serial-port: no need to pass port type when creating the object
We'll just specify the port is AT, not primary or secondary
2012-03-15 14:15:05 +01:00
Aleksander Morgado f8cc4114ad qcdm-serial-port: no need to pass port type when creating the object 2012-03-15 14:15:05 +01:00
Aleksander Morgado 44e5ebfec3 bearer-list: avoid redefinition of MMBearerLisForeachFunc 2012-03-15 14:15:05 +01:00
Aleksander Morgado 66b2b7fb23 base-modem: also signal validity when reporting invalid
Otherwise the manager won't catch invalid modems failing at initialization.
2012-03-15 14:15:05 +01:00