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
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
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
46cbee191c
broadband-modem: always PDU mode preferred
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
50d474056d
iface-modem-messaging: once all messages initially loaded, set default storages
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
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
Aleksander Morgado
4e4078ef2e
sms: implement default storing
2012-03-15 14:15:02 +01:00
Aleksander Morgado
183e7c3205
sms-part: include the submit-pdu building code
...
It currently doesn't do multi-part. When do support that, we may end up needing
to move all this code to mm-sms.c
2012-03-15 14:15:02 +01:00
Aleksander Morgado
bf5276d4c7
broadband-modem: implement the use-pdu-mode flag property
2012-03-15 14:15:02 +01:00
Aleksander Morgado
6bb4f9cb57
iface-modem-messaging: handle the flag to use PDU mode as a property
2012-03-15 14:15:02 +01:00
Aleksander Morgado
556efdd378
sms-list: refactor SMS removal
...
If any of the parts couldn't be removed, an error is reported and the SMS is
left in the list.
2012-03-15 14:15:02 +01:00
Aleksander Morgado
572565c1e0
sms: delete() just removes the parts from the storage
...
It's left to the delete() caller to unexport the SMS object from DBus and such.
2012-03-15 14:15:02 +01:00
Aleksander Morgado
40a39e4d47
sms-part: allow reseting part index
...
so that we can for example, tell the index is INVALID
2012-03-15 14:15:02 +01:00
Aleksander Morgado
a8b3b50f45
sms: 'number' and 'text' are mandatory when creating from properties
2012-03-15 14:15:02 +01:00