summaryrefslogtreecommitdiff
path: root/plugins/ofono.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang1-1/+1
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang1-308/+327
2013-04-03ofono: Add the CDMA network when the device is createdForest Bond1-2/+8
There is a race that causes the network not to be added if we get the CDMA netreg changed signal before the CDMA connection manager added signal. In that case the network is not added because the device has not been created yet. So we fix this by trying to add the network whenever the device is created.
2013-04-03ofono: Add CDMA network when modem is registeredForest Bond1-11/+16
Connecting the network requires powering the CDMA connection manager, which fails with an error if network registration is not complete. So we only add the network when registration is complete and remove it when the modem is no longer registered.
2013-01-30ofono: Set network available is needed only when scanningPatrik Flykt1-2/+0
2013-01-30ofono: Use ordinary string instead of identPatrik Flykt1-1/+1
The string is only used for debugging purposes.
2012-11-15ofono: Remove network if GPRS context is removedDaniel Wagner1-1/+3
Whenever the GPRS contextext is removed we need also to remove the network object. Following sequence was observed: cm_update_attached() /huawei_1 Attached 1 modem_changed() /huawei_1 Interfaces 0x07 Plugin creates network object and registers it at core cm_update_attached() /huawei_1 Attached 0 service.c:run_auto_connect() set_property() /huawei_1 path /huawei_1/context1 org.ofono.ConnectionContext.Active Obviously, the context is not attached at this point so we get an Failed to change property: /huawei_1/context1 org.ofono.ConnectionContext.Active: org.ofono.Error.NotAttached GPRS is not attached Fixes BMC#25725
2012-08-14ofono: Set IPv6 nameserversDaniel Wagner1-2/+17
2012-08-14ofono: Create ipconfig before setting indexDaniel Wagner1-41/+26
Since connman_network_set_index() does not create magically the ipconfig for us anymore, we need to create it inside set_connected().
2012-07-15plugins: Avoid shadowing connection variableMarcel Holtmann1-11/+11
2012-06-30ofono: Watch for signals only on OFONO_SERVICELucas De Marchi1-15/+18
2012-06-30ofono: Fix potential crashGuillaume Zajac1-0/+6
If a dummy context is created, it might happen that its index is equal to -1. In this particular case the IP address has not been copied to context->address during ipv4 extraction. If we force from oFono a context activation, it will make ConnMan crashing on set_connected().
2012-05-09ofono: Fix uninitialized variableHenrique Dante de Almeida1-1/+1
2012-05-09ofono: Fix uninitialized valueHenrique Dante de Almeida1-3/+1
2012-05-09oFono: Initialize prefix_lengthDaniel Wagner1-1/+1
We could end up calling connman_ipaddress_set_ipv6() withouth prefix_lenght initialized. Reported by hdante.
2012-05-08ofono: Check for CM attached before registering networkDaniel Wagner1-1/+4
We need to check the ConnectionManager attached signal before we are allowed to connect to the gprs context: connmand[592]: plugins/ofono.c:cm_update_attached() /zte_0 Attached 0 [...] connmand[592]: plugins/ofono.c:context_set_active() /zte_0 active 1 connmand[592]: plugins/ofono.c:set_property() /zte_0 path /zte_0/context1 org.ofono.ConnectionContext.Active [...] connmand[592]: plugins/ofono.c:cm_update_attached() /zte_0 Attached 1 Fixes BMC#25112
2012-04-29plugins: Update copyright informationMarcel Holtmann1-1/+1
2012-04-20ofono: Only register network when APN is setJussi Kukkonen1-2/+54
Empty AccessPointName in a oFono internet context means it cannot be activated: Don't create networks in this situation. The conditions for adding a network are then a) modem supports NetworkRegistration b) modem has a context with a valid APN Fixes BMC#24959
2012-04-20ofono: Fix network_driver nameDaniel Wagner1-1/+1
2012-04-02ofono: Fix NULL pointer access in set_disconnect()Daniel Wagner1-0/+3
oFono sends several ConnectionContext.PropertyChanged("Active", False) after it was told to disconnect. After studying the oFono part, it looks like that serveral CREGS updates could trigger oFono to send us the same flag over and over again (see ofono_gprs_status_notify()). Even though oFono might missbehave, ConnMan should not crash so easily. Luckely, the fix is very simple. We should just check if we still have a valid network pointer before accessing it. Fixes BMC#25026
2012-03-05ofono: Remove network whenever context is removedJussi Kukkonen1-0/+3
Fixes BMC#24942
2012-03-05ofono: fix modem lookup in cm_context_added()Jussi Kukkonen1-1/+1
2012-02-28ofono: Remove obsolete DUN commentDaniel Wagner1-2/+0
2012-02-13ofono: Update CDMA documentationGuillaume Zajac1-2/+23
2012-02-10ofono: Check for mcc before using it as an indexSamuel Ortiz1-2/+3
Also avoid calling set_regdom is the alpha2 is NULL.
2012-01-27oFono: Update documentationDaniel Wagner1-6/+20
Explain how the plugin works for a GSM modem.
2012-01-20ofono: Cancel pending SetPropertyDaniel Wagner1-2/+4
If the cellular technolgy is disabled while ConnMan is connected to a cellular network, the plugin gets first a network_disconnect() call and shortly after that a modem_disable(). network_disconnect() will set org.ofono.ConnectionContext.Active to false while this call is pending modem_disable() tries to set org.ofono.Modem.Online to false. There is no point in waiting for the first call to succeed or fail. Just cancel it and set the modem offline. Fixes BMC#24651.
2012-01-20ofono: Register technology driverDaniel Wagner1-0/+24
With e1d92d253c5db96bdc8fe2a21e463fc730570311 we need to register a driver for each technology. Fixes BMC#24702.
2012-01-05ofono: Fix network name is null for CDMA networkYu A Wang1-0/+3
2012-01-05ofono: Fix no ip settings for CDMA networkYu A Wang1-3/+0
When we add cdma network, we alloc the context for the modem, due to add_network logic needs, then we need extract ip settings even context is not NULL
2012-01-05ofono: Create device for CDMA modemYu A Wang1-0/+6
For cdma modem, the property change for serial may after interfaces, then we need to create device for cdma modem when we get serial property
2011-12-22ofono: Create ipconfig layer when creating networkDaniel Wagner1-0/+6
Create the ipconfig layer before trying to connect. Withouth the ipconfig layer the core is not ready to process errors.
2011-12-22ofono: Discover already online modemsDaniel Wagner1-0/+14
If a modem is already online there will be no updates on the interfaces and therefore no triggers to do the complete discovering.
2011-12-22ofono: Set device powered stateDaniel Wagner1-0/+6
2011-12-22ofono: Handle add/remove of API separatlyDaniel Wagner1-64/+122
Simplify the way the interface apperance and disapperance are handled and write them explicitly out. This is not extremly fast or elegant but it is much more readable and maintainable. Also unregister the network object when the modem goes offline. Fixes BMC#24432
2011-12-22ofono: Create device when powered upDaniel Wagner1-10/+21
Instead of directly online we let the core decide when to set the modem online therefore we have to create the connman_device a bit earlier at register it.
2011-12-22ofono: Refactor sim_changed()Daniel Wagner1-12/+1
to use connection_manager_init().
2011-12-22ofono: Enable and disable the modem through online interfaceDaniel Wagner1-8/+8
2011-12-22ofono: Ignore non-related interface updatesDaniel Wagner1-1/+8
Only trigger update code if there was a change in the interface we are interested in.
2011-12-22ofono: Merge modem_set_un/powered()Daniel Wagner1-19/+13
Also follow the patternt that we have only a set function with an argument for the value tos set.
2011-12-22ofono: Remove unused set_cm_poweredDaniel Wagner1-25/+12
Also follow the patternt that we have only a set function with an argument for the value tos set.
2011-12-22ofono: Remove unused set_onlineDaniel Wagner1-25/+6
Also follow the patternt that we have only a set function with an argument for the value tos set.
2011-12-22ofono: Merge cmda_cm_set_powered()/cmda_cm_shutdown()Daniel Wagner1-18/+18
Follow the pattern that we have only a set function with an argument for the value to set.
2011-12-22ofono: Merge context_set_in/active()Daniel Wagner1-20/+17
Follow the pattern that we have only a set function with an argument for the value to set.
2011-12-22ofono: Refactore IMSI updateDaniel Wagner1-15/+8
Streamline Property handling code with the rest of the plugin.
2011-12-15ofono: Set regulatory domainDaniel Wagner1-0/+27
Fixes BMC#24430
2011-12-15ofono: Fix cleanup of connman_manager_init()Daniel Wagner1-4/+4
The return value has to be boolean.
2011-12-15ofono: Remove unnecessary bracketsDaniel Wagner1-3/+3
2011-12-15ofono: Add cdma-connman relative functionsGuillaume Zajac1-2/+97
2011-12-15ofono: Add cdma-netreg relative functionsGuillaume Zajac1-3/+146