aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2012-03-15iface-modem-3gpp: if we get unregistered ensure we have disconnected 3GPP ↵Aleksander Morgado
bearers It is actually very likely that we get automatically the bearer disconnected when we get unregistered in the network, but anyway.
2012-03-15iface-modem: handle connection related statesAleksander Morgado
Moved from broadband-modem. All this logic is really common not specific to the generic implementation.
2012-03-15iface-modem: while connected, ignore registration state changesAleksander Morgado
2012-03-15broadband-modem: handle connection related states in the modemAleksander Morgado
As a modem can have more than one bearer, the mapping between the bearer state and the modem state is not direct.
2012-03-15bearer: new `bearer-state' propertyAleksander Morgado
2012-03-15core,libmm-glib: include ony `libmm-common.h'Aleksander Morgado
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-15bearer-3gpp: set ip method when connecting the bearerAleksander Morgado
Currently, assume PPP when we have an AT data port, and DHCP otherwise.
2012-03-15manager: don't try to export already exported modemsAleksander Morgado
2012-03-15broadband-modem: allow 3GPP bearer connection if registered in 3GPP networkAleksander Morgado
2012-03-15bearer: fail connecting try if not allowed to connectAleksander Morgado
2012-03-15bearer-list: allow iterating over the bearers in the listAleksander Morgado
2012-03-15bearer: new property to define whether the bearer is allowed to connectAleksander Morgado
Modems will allow bearers to get connected once they are registered in the network.
2012-03-15bearer-3gpp: implement 3GPP-specific bearerAleksander Morgado
Implement basic functionality of a 3GPP based bearer, including connnection and disconnection.
2012-03-15iface-modem: minor fix, remove unneeded variables in the initialization contextAleksander Morgado
2012-03-15base-modem: allow retrieving non-connected data portsAleksander Morgado
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-15iface-modem: treat several SIM related errors as fatalAleksander Morgado
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-15helpers: implement CGDCONT reply parsingAleksander Morgado
New method to parse the PDP query reply, and build a list of structs with the found info.
2012-03-15bearer: populate Properties used when creating the BearerAleksander Morgado
2012-03-15iface-modem: implement all bearer list operations in the interfaceAleksander Morgado
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-15bearer: ensure only valid bearers are exportedAleksander Morgado
We setup bearer export in DBus only if the input properties are the expected ones.
2012-03-15libmm-common: capabilities string builder moved from coreAleksander Morgado
Keep in libmm-common the capabilities string builder.
2012-03-15broadband-modem: by default only send init command onceAleksander Morgado
Will handle sending it twice only for Nokia phones.
2012-03-15port-probe: always complete probing task in idleAleksander Morgado
2012-03-15port-probe: plug small leak when reporting error in AT command responseAleksander Morgado
2012-03-15broadband-modem: implement bearer creation, deletion and listingAleksander Morgado
Currently do not limit the number of bearers that can be created.
2012-03-15bearer: fix object export/unexportAleksander Morgado
2012-03-15sim: only unexport object if currently exportedAleksander Morgado
Avoid trying to unexport the object if it was never exported before.
2012-03-15iface-modem-3gpp: bind connection property right awayAleksander Morgado
2012-03-15iface-modem: bind connection property right awayAleksander Morgado
2012-03-15sim: bind connection property right awayAleksander Morgado
2012-03-15sim: make sure we unexport the SIM object when destroying itAleksander Morgado
Usually, if not always, the connection stored in the SIM object never exists when disposing it, as we clear the connection property in the Modem object before destroying it, and both properties are bound. But just in case, in order to avoid ending up with a zombie object in DBus, we make sure we unexport it.
2012-03-15bearer: keep properties given as input, and avoid async creationAleksander Morgado
No need to create this object asynchronously.
2012-03-15modem-helpers: new helper to count number of bits set in a bitmaskAleksander Morgado
2012-03-15bearer: new object to handle bearers, implements the Bearer DBus interfaceAleksander Morgado
2012-03-15sim: plug memleak, free path on finalize()Aleksander Morgado
2012-03-15error-helpers: small refactorAleksander Morgado
2012-03-15core: port to use the new AT command/sequences in the MMBaseModem APIAleksander Morgado
2012-03-15base-modem-at: refactor AT sequence/command handlingAleksander Morgado
Make a tight connection between the action of sending AT commands, either single or in a sequence, with the MMBaseModem object owning the port. This direct relation allows sending commands without specifying which port to use, so that the modem object can get the best port at each time, and handling all that in a single common place. The original mm-at API has also been modified so that when a single command is sent, a constant string is returned. We are allowed to return constant strings in mm_base_modem_at_command_finish() because the string itself is owned by the GSimpleAsyncResult, and hence, alive enough time. The GSimpleAsyncResult is completely disposed only after the async call is fully completed. Same reasoning behind the GVariant returned in the AT sequences; it should not be owned by the caller, it's a transfer-none in introspection terms.
2012-03-15iface-modem: handle CreateBearer(), DeleteBearer() and ListBearers()Aleksander Morgado
Just pass the task to the specific underlying implementation.
2012-03-15broadband-modem: implement cleaning up CS and PS registrationsAleksander Morgado
2012-03-15iface-modem-3gpp: cleanup CS and PS registrations during disableAleksander Morgado
2012-03-15broadband-modem: implement cleaning up unsolicited registration message handlersAleksander Morgado
2012-03-15iface-modem-3gpp: cleanup unsolicited registration messages during disableAleksander Morgado
2012-03-15iface-modem: don't flash port during disableAleksander Morgado
At least just for now. Flashing should be done as part of the disconnection.
2012-03-15broadband-modem: setup steps when disabling the modemAleksander Morgado
Include disabling the Modem and 3GPP interfaces for now.
2012-03-15iface-modem-3gpp: interface can be disabledAleksander Morgado
2012-03-15iface-modem-3gpp: enable periodic registration checks if no unsolicitedAleksander Morgado
If we get errors when configuring the unsolicited registration messages, setup a timeout to be run every 30s which will check our registration status.
2012-03-15broadband-modem: implement network scanAleksander Morgado
2012-03-15iface-modem-3gpp: handle network scan requestsAleksander Morgado
2012-03-15modem-helpers: provide list of scanned networks in a list of structsAleksander Morgado
We provide the result of the +COPS=? parsing in a GList of MM3gppNetworkInfo structures. We avoid the previous hash table, or using a dictionary, as a list of structs with a predefined set of elements, which should be easier for plugins wanting to make their own version