Commit Graph

2375 Commits

Author SHA1 Message Date
Aleksander Morgado
93732cf075 bearers: base bearer creation in the new bearer properties object 2012-03-15 14:14:38 +01:00
Aleksander Morgado
10a4360d83 bearer: provide reason of why connection is forbidden 2012-03-15 14:14:38 +01:00
Aleksander Morgado
8ff310be28 iface-modem-simple: use the new connect properties object 2012-03-15 14:14:38 +01:00
Aleksander Morgado
9d7e3de4cd api: MMModemBand is now an enum, not flags
We don't want to handle bands as flags, in order to avoid the need of 64-bits
for the enum. This change implies that setting allowed bands will be done by
giving an array of uint32 values, signature "au".
2012-03-15 14:14:37 +01:00
Aleksander Morgado
a142a209ec broadband-modem: update registration state when disabling 2012-03-15 14:14:37 +01:00
Aleksander Morgado
5c74c53354 iface-modem: don't update access tech if it didn't change 2012-03-15 14:14:37 +01:00
Aleksander Morgado
54d718efe5 broadband-modem: try to simplify 3GPP network registration
When requesting to register in the network manually, we will poll every once
in a while to check whether we got registered or not. We remove the registration
timeout and we handle the case where it never gets registered by allowing a
maximum number of registration checks in our request.
2012-03-15 14:14:37 +01:00
Aleksander Morgado
ab9c7d9013 iface-modem-simple: implement Connect() 2012-03-15 14:14:37 +01:00
Aleksander Morgado
4387fa183c broadband-modem: use new common method to check if modem is 3GPP 2012-03-15 14:14:37 +01:00
Aleksander Morgado
473ca46ad9 iface-modem-3gpp: allow requesting to register internally, not just via DBus 2012-03-15 14:14:37 +01:00
Aleksander Morgado
c9c9421102 iface-modem: allow setting allowed modes and bands internally, not just via DBus 2012-03-15 14:14:36 +01:00
Aleksander Morgado
937baa1a0a sim: allow sending PIN code internally, not just via DBus 2012-03-15 14:14:36 +01:00
Aleksander Morgado
8a636f6b16 broadband-modem: handle state checks during Enable() and Disable()
Before it was done in the interface; but we should really be doing it in the
implementation; so that mm_base_modem_enable()/disable() also has the state
checks.
2012-03-15 14:14:36 +01:00
Aleksander Morgado
9a80f58165 broadband-modem: implement the Simple interface 2012-03-15 14:14:36 +01:00
Aleksander Morgado
7ea8bf59fb iface-modem-simple: new interface to handle the Simple interface 2012-03-15 14:14:36 +01:00
Aleksander Morgado
ea93414830 broadband-modem: shutdown 3GPP interface when disposing 2012-03-15 14:14:36 +01:00
Aleksander Morgado
6cce67a451 modem-helpers: MMModemAccessTechnology is flags, not enum 2012-03-15 14:14:36 +01:00
Aleksander Morgado
dcfe2e5390 3gpp: control 3GPP bearer creation in the 3GPP modem interface
And implement bearer connection allowance based on roaming status.
2012-03-15 14:14:36 +01:00
Aleksander Morgado
4c52441932 bearer-3gpp: provide getters for the properties 2012-03-15 14:14:36 +01:00
Aleksander Morgado
e385b5b079 api,core: new 'allow-roaming' property to be set when creating a bearer
This new boolean property, applicable to 3GPP bearers, will specify whether 3GPP
bearers are allowed to get connected when registered in a roaming network.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
4495ba180e core: implement Access Technology reporting
For 3GPP modems only for now..
2012-03-15 14:14:35 +01:00
Aleksander Morgado
516b097331 api,enums: renamed MMModemAccessTech' to MMModemAccessTechnology'
This one was the last enum without full name.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
b6a3ccd578 modem-helpers: renamed 3GPP registration related helpers with `mm_3gpp' prefix 2012-03-15 14:14:35 +01:00
Aleksander Morgado
e2e0812272 api,dbus: renamed AccessTechnology' to AccessTechnologies'
We are reporting a bitmask of flags, not just one value.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
e86c8554cc broadband-modem: bearer connection allowance handled in ifaces 2012-03-15 14:14:35 +01:00
Aleksander Morgado
ddac446e86 iface-modem-3gpp: disable periodic registration checks 2012-03-15 14:14:35 +01:00
Aleksander Morgado
4b27149cf4 iface-modem-3gpp: when disabling, disconnect all 3GPP bearers 2012-03-15 14:14:35 +01:00
Aleksander Morgado
855824d7da bearer: allow disconnection also with internal requests 2012-03-15 14:14:35 +01:00
Aleksander Morgado
ee9cbbfcfb bearer,bearer-3gpp: implement connection request cancellation
We allow connection requests to get cancelled, either via DBus calls or any
other method.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
96defb4cd2 iface-modem-3gpp: if we get unregistered ensure we have disconnected 3GPP bearers
It is actually very likely that we get automatically the bearer disconnected when
we get unregistered in the network, but anyway.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
e71a9ef971 iface-modem: handle connection related states
Moved from broadband-modem. All this logic is really common not specific to the
generic implementation.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
dd20067975 iface-modem: while connected, ignore registration state changes 2012-03-15 14:14:35 +01:00
Aleksander Morgado
cd6caf6106 broadband-modem: handle connection related states in the modem
As a modem can have more than one bearer, the mapping between the bearer state
and the modem state is not direct.
2012-03-15 14:14:35 +01:00
Aleksander Morgado
9962f5cbde bearer: new `bearer-state' property 2012-03-15 14:14:35 +01:00
Aleksander Morgado
cadc27ca0e core,libmm-glib: include ony `libmm-common.h'
Don't include one by one all the headers from libmm-common, just include the
global `libmm-common.h' which includes all the others.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
4b8b99ee96 bearer-3gpp: set ip method when connecting the bearer
Currently, assume PPP when we have an AT data port, and DHCP otherwise.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
b7960f82ac manager: don't try to export already exported modems 2012-03-15 14:14:34 +01:00
Aleksander Morgado
7e99d9415b broadband-modem: allow 3GPP bearer connection if registered in 3GPP network 2012-03-15 14:14:34 +01:00
Aleksander Morgado
770ea53109 bearer: fail connecting try if not allowed to connect 2012-03-15 14:14:34 +01:00
Aleksander Morgado
3d1d4c42e5 bearer-list: allow iterating over the bearers in the list 2012-03-15 14:14:34 +01:00
Aleksander Morgado
00b2e2d2dd bearer: new property to define whether the bearer is allowed to connect
Modems will allow bearers to get connected once they are registered in the
network.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
48f0061355 bearer-3gpp: implement 3GPP-specific bearer
Implement basic functionality of a 3GPP based bearer, including connnection and
disconnection.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
c855e5be2d iface-modem: minor fix, remove unneeded variables in the initialization context 2012-03-15 14:14:34 +01:00
Aleksander Morgado
c133c3284d base-modem: allow retrieving non-connected data ports
Bearers will ask for data ports that can be used for connections. Right now,
only one data port is expected to be handled, but we don't impose any
restriction in the API.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
88077cbbe8 iface-modem: treat several SIM related errors as fatal
If the SIM is not inserted or the modem reports SIM failures, just abort the
initialization process. We don't want to export modems which cannot be used.

I know at least of one modem (wavecom) which supports SIM insertion while
connected, but being such a corner case, probably not worth supporting it.
2012-03-15 14:14:34 +01:00
Aleksander Morgado
5f4655c574 helpers: implement CGDCONT reply parsing
New method to parse the PDP query reply, and build a list of structs with the
found info.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
d7f4a5e134 bearer: populate Properties used when creating the Bearer 2012-03-15 14:14:33 +01:00
Aleksander Morgado
776cc66e2c iface-modem: implement all bearer list operations in the interface
Bearer list operations, except for Bearer creation, are so generic that the
interface itself can implement it for every object implementing the interface.
This implementation is based on a new MMBearerList object.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
667e3edfbd bearer: ensure only valid bearers are exported
We setup bearer export in DBus only if the input properties are the expected
ones.
2012-03-15 14:14:33 +01:00
Aleksander Morgado
4d594c50e8 libmm-common: capabilities string builder moved from core
Keep in libmm-common the capabilities string builder.
2012-03-15 14:14:33 +01:00