Commit Graph

1812 Commits

Author SHA1 Message Date
Aleksander Morgado
3c90793f22 cli: use the new properties handler object in simple Connect() 2012-03-15 14:14:38 +01:00
Aleksander Morgado
dcecb94631 libmm-common,libmm-glib: new object to handle properties in simple Connect()
Instead of using type unsafe properties passed to the connect() call, we build
a new object which does the handling of the properties to be passed.
2012-03-15 14:14:37 +01:00
Aleksander Morgado
0343812502 libmm-common: new modes string parser 2012-03-15 14:14:37 +01:00
Aleksander Morgado
6cfccb1452 libmm-common,libmm-glib: new modes string builder 2012-03-15 14:14:37 +01:00
Aleksander Morgado
aa3d98d0ff libmm-common: new bands string parser 2012-03-15 14:14:37 +01:00
Aleksander Morgado
d81d1d9d6a libmm-common: handle exact mask matches when building capabilities string 2012-03-15 14:14:37 +01:00
Aleksander Morgado
9868d757c7 cli: print supported/allowed bands in modem info 2012-03-15 14:14:37 +01:00
Aleksander Morgado
5e0df90272 libmm-common, libmm-glib: new bands string builder 2012-03-15 14:14:37 +01:00
Aleksander Morgado
b224f18894 cli: modem options check always last, even when shutting down 2012-03-15 14:14:37 +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
21d3aed125 cli: implement actions from the Simple interface 2012-03-15 14:14:37 +01:00
Aleksander Morgado
90b4323b8a libmm-glib: handle the Simple interface 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
0cb3be0618 api,dbus: let Connect() return just the bearer path
Also renamed some of the properties that can be passed, trying to consolidate a
common set of names.
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
88e8c4835b cli: implement SIM related actions 2012-03-15 14:14:36 +01:00
Aleksander Morgado
241c294918 cli: include 3GPP related stuff when printing modem info 2012-03-15 14:14:36 +01:00
Aleksander Morgado
6583bd61e1 cli: implement 3GPP related actions 2012-03-15 14:14:36 +01:00
Aleksander Morgado
73ca5dcb24 cli: don't recheck group options if already done 2012-03-15 14:14:36 +01:00
Aleksander Morgado
8fc2050e76 libmm-glib: provide a list of opaque structs with network info in scan reply 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
16f2b7bdb8 cli: specify common options in a new group
Actions on modems from specific interfaces, like 3GPP, will also need the modem
to be specified.

The new 'Common' option group will handle all options to specify objects.
2012-03-15 14:14:36 +01:00
Aleksander Morgado
265a516f42 cli: add debug logs when parsing properties to create a bearer 2012-03-15 14:14:36 +01:00
Aleksander Morgado
9f960e9865 cli: print properties used when bearer was created 2012-03-15 14:14:36 +01:00
Aleksander Morgado
215b9c1a31 libmm-glib: allow getting properties used when the bearer was created 2012-03-15 14:14:36 +01:00
Aleksander Morgado
a422f5619f libmm-glib: generic warning if IP config dictionary has unexpected contents 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
405f7c8660 cli: allow passing the new 'allow-roaming' in the bearer creation string 2012-03-15 14:14:36 +01:00
Aleksander Morgado
6f98da9310 libmm-glib: handle new 'allow-roaming' property when creating bearers 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
fdd05ee977 cli: on modem actions creating/listing bearers, just print bearer path 2012-03-15 14:14:35 +01:00
Aleksander Morgado
a7b414e8a9 cli: report access technologies in use by the modem 2012-03-15 14:14:35 +01:00
Aleksander Morgado
52c5f6051b libmm-glib: new helper method to build a string with access technologies 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
ff60251733 api,enums: let MMModemAccessTech be flags instead of enum
We should be able to report more than one access technology used at a given
time.
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