Commit Graph
2046 Commits
Author SHA1 Message Date
Aleksander Morgado dc1df5bf2f iface-modem-simple: SIM-PIN2 locking does not prevent from connecting 2012-03-15 14:15:06 +01:00
Aleksander Morgado c176117941 libmm-common: no need to check for end of string when looking for spaces 2012-03-15 14:15:06 +01:00
Aleksander Morgado 2234205570 libmm-common: allow empty strings passed to the key value parser 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
Aleksander Morgado 20d8fd92bf port: no need for custom enum to string converters 2012-03-15 14:15:05 +01:00
Aleksander Morgado 46a665630d base-modem: use new autogenerated port-enum-string getters 2012-03-15 14:15:04 +01:00
Aleksander Morgado 06260cdced build: private enums don't depend on the public ones 2012-03-15 14:15:04 +01:00
Aleksander Morgado ec98955362 build: ignore built files 2012-03-15 14:15:04 +01:00
Aleksander Morgado 4d3a61d58b build: generate libserial-specific enum types 2012-03-15 14:15:04 +01:00
Aleksander Morgado ffdb034413 build: renamed files holding daemon-specific enum types 2012-03-15 14:15:04 +01:00
Aleksander Morgado 71c3c8d8e5 libmm-common: use the new key/value parser in the common bearer properties builder 2012-03-15 14:15:04 +01:00
Aleksander Morgado 591e641369 libmm-common: use the new key/value parser in the common connect properties builder 2012-03-15 14:15:04 +01:00
Aleksander Morgado f0b9f3954c libmm-common: use the new key/value parser in the common SMS properties builder 2012-03-15 14:15:04 +01:00
Aleksander Morgado b7938448ea libmm-common,tests: new tests for the key/value parser 2012-03-15 14:15:04 +01:00
Aleksander Morgado 7df5874a88 libmm-common: new helper key/value parser 2012-03-15 14:15:04 +01:00
Aleksander Morgado 46cbee191c broadband-modem: always PDU mode preferred 2012-03-15 14:15:04 +01:00
Aleksander Morgado 7f8ca20096 cli: include storage when printing SMS info 2012-03-15 14:15:04 +01:00
Aleksander Morgado a35472b0a1 libmm-glib: allow getting SMS storage 2012-03-15 14:15:04 +01:00
Aleksander Morgado 978801ee7b sms: specify storage where the SMS is kept 2012-03-15 14:15:04 +01:00
Aleksander Morgado 86dd0816b5 api,dbus: new `Storage' property in the SMS interface 2012-03-15 14:15:03 +01:00
Aleksander Morgado 50d474056d iface-modem-messaging: once all messages initially loaded, set default storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado 8c8e5efa14 cinterion: SMS storage mem3 doesn't support 'ME' 2012-03-15 14:15:03 +01:00
Aleksander Morgado cce2869f1b broadband-modem: implement default storage settings 2012-03-15 14:15:03 +01:00
Aleksander Morgado f7c41b8e48 iface-modem-messaging: use defaults when no specific storage specified 2012-03-15 14:15:03 +01:00
Aleksander Morgado 9e3f66393f iface-modem-messaging: load initial parts from all available storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado cd184f33f9 test: new tester for CPMS=? results 2012-03-15 14:15:03 +01:00
Aleksander Morgado 69ecae2dc4 iface-modem-messaging: new method to set preferred SMS storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado e6e7aa1846 broadband-modem: override default preferred mem1/mem2/mem3 storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado f6ef117d32 iface-modem-messaging: new properties to define preferred mem1/mem2/mem3 storages 2012-03-15 14:15:03 +01:00
Aleksander Morgado 55ba297fb8 broadband-modem: implement default SMS storage loading 2012-03-15 14:15:03 +01:00
Aleksander Morgado 7fb1234015 iface-modem-messaging: load supported SMS storages during initialization 2012-03-15 14:15:03 +01:00
Aleksander Morgado 09adad847e modem-helpers: new CPMS format result parser 2012-03-15 14:15:03 +01:00
Aleksander Morgado 23508ddd7f libmm-common: new helpers to work with SMS storage strings 2012-03-15 14:15:03 +01:00
Aleksander Morgado 1e5756c33b api,header: new `MMSmsStorage' enumeration 2012-03-15 14:15:03 +01:00
Aleksander Morgado 4b6792dd62 sms: implement default sending, either from storage or through the generic cmd 2012-03-15 14:15:03 +01:00
Aleksander Morgado ea8b4c80b7 sms: don't allow sending received messages 2012-03-15 14:15:02 +01:00