framework/connectivity/connman.git
12 years agoofono: Add cdma-connman power and shutdown API
Guillaume Zajac [Thu, 15 Dec 2011 13:34:25 +0000 (14:34 +0100)]
ofono: Add cdma-connman power and shutdown API

12 years agoofono: Add CDMA interfaces extraction
Guillaume Zajac [Thu, 15 Dec 2011 13:34:24 +0000 (14:34 +0100)]
ofono: Add CDMA interfaces extraction

12 years agoofono: Remove unnecessary brackets
Daniel Wagner [Mon, 12 Dec 2011 17:58:40 +0000 (18:58 +0100)]
ofono: Remove unnecessary brackets

A left over from the refactoring.

12 years agoofono: Move cm powered update into a function
Daniel Wagner [Mon, 12 Dec 2011 17:57:19 +0000 (18:57 +0100)]
ofono: Move cm powered update into a function

12 years agoofono: Move cm attached update into a function
Daniel Wagner [Mon, 12 Dec 2011 17:57:00 +0000 (18:57 +0100)]
ofono: Move cm attached update into a function

12 years agonetwork: Remove connman_network_set_roaming
Daniel Wagner [Mon, 12 Dec 2011 17:41:33 +0000 (18:41 +0100)]
network: Remove connman_network_set_roaming

The current code uses connman_network_set_bool(network, "Roaming", value).

12 years agoofono: Use generic setter instead connman_network_set_roaming
Daniel Wagner [Mon, 12 Dec 2011 17:39:52 +0000 (18:39 +0100)]
ofono: Use generic setter instead connman_network_set_roaming

12 years agoofono: Monitor netreg Roaming property
Daniel Wagner [Mon, 12 Dec 2011 17:33:53 +0000 (18:33 +0100)]
ofono: Monitor netreg Roaming property

12 years agoofono: Move netreg strength update into a function
Daniel Wagner [Mon, 12 Dec 2011 17:32:53 +0000 (18:32 +0100)]
ofono: Move netreg strength update into a function

12 years agoofono: Move netreg name update into a function
Daniel Wagner [Mon, 12 Dec 2011 17:31:57 +0000 (18:31 +0100)]
ofono: Move netreg name update into a function

12 years agoofono: Update copyright statement
Daniel Wagner [Tue, 22 Nov 2011 12:55:25 +0000 (13:55 +0100)]
ofono: Update copyright statement

12 years agoofono: Add documentation
Daniel Wagner [Tue, 22 Nov 2011 12:54:58 +0000 (13:54 +0100)]
ofono: Add documentation

12 years agoofono: Ignore non 'hardware' modem types.
Daniel Wagner [Wed, 23 Nov 2011 16:15:22 +0000 (17:15 +0100)]
ofono: Ignore non 'hardware' modem types.

The HFP modems should not controlled by the ofono plugin. Such
modems are under the control of a dialer.

12 years agoofono: Power down modem when ConnMan shutsdown
Daniel Wagner [Tue, 22 Nov 2011 12:54:30 +0000 (13:54 +0100)]
ofono: Power down modem when ConnMan shutsdown

12 years agoofono: Add connect()/disconnnect network
Daniel Wagner [Tue, 22 Nov 2011 12:53:29 +0000 (13:53 +0100)]
ofono: Add connect()/disconnnect network

When the core ask us to connect to the network we have
to set the context active. Or vice versa.

12 years agoofono: Register network object at core
Daniel Wagner [Tue, 22 Nov 2011 12:52:18 +0000 (13:52 +0100)]
ofono: Register network object at core

After we have retrieved the netreg properties we are fully
functional and can register the network at the core.

12 years agoofono: Get NetworkRegistration properties
Daniel Wagner [Tue, 22 Nov 2011 12:48:48 +0000 (13:48 +0100)]
ofono: Get NetworkRegistration properties

After the Attched signal has been emitted by oFono
aks for the netreg properties. We are interested
in the name and signal strengh property.

12 years agoofono: Extract ConnectionContext information
Daniel Wagner [Fri, 25 Nov 2011 07:45:28 +0000 (08:45 +0100)]
ofono: Extract ConnectionContext information

And fill it into the network_context data structure.

12 years agoofono: Get ConnectionContext properties
Daniel Wagner [Fri, 25 Nov 2011 07:44:22 +0000 (08:44 +0100)]
ofono: Get ConnectionContext properties

Add a new local data structure called network_context which
keeps track of the context properties.

Additionally a context hash table is added for quick lookup
in the context_changed() function.

The extracting code for the values will added in the next patch.

12 years agoofono: Power up ConnectionManager
Daniel Wagner [Thu, 24 Nov 2011 08:42:43 +0000 (09:42 +0100)]
ofono: Power up ConnectionManager

Not all modems (e.g. dunmodem) do automatically power up the
ConnectionManager interface.

12 years agoofono: Get ConnectionManager properties
Daniel Wagner [Fri, 25 Nov 2011 07:41:11 +0000 (08:41 +0100)]
ofono: Get ConnectionManager properties

12 years agoofono: Attach device to core
Daniel Wagner [Fri, 25 Nov 2011 07:13:17 +0000 (08:13 +0100)]
ofono: Attach device to core

Create a device object when the ConnectionManager interface
has been added.  Destroy the device object when
either the modem disappears or the ConnectionManager goes away.

12 years agoofono: Set modems online
Daniel Wagner [Tue, 22 Nov 2011 09:08:27 +0000 (10:08 +0100)]
ofono: Set modems online

12 years agoofono: Get SIM properties
Daniel Wagner [Tue, 22 Nov 2011 09:01:00 +0000 (10:01 +0100)]
ofono: Get SIM properties

Also add get_properties() infrastructure code

12 years agoofono: Power up modems
Daniel Wagner [Tue, 22 Nov 2011 08:50:24 +0000 (09:50 +0100)]
ofono: Power up modems

Also add set_property() infrastructure code.

12 years agoofono: Extract modem properties
Daniel Wagner [Thu, 24 Nov 2011 07:42:26 +0000 (08:42 +0100)]
ofono: Extract modem properties

Interesting values are Powered, Online and Interfaces.

The Serial string has to be tracked only for modems
which do not have a SIM interface, e.g. dunmodems.

Conflicts:

plugins/ofono.c

12 years agoofono: Keep track of all modems
Daniel Wagner [Mon, 21 Nov 2011 17:41:48 +0000 (18:41 +0100)]
ofono: Keep track of all modems

Each modem reported by oFono will be tracked with the modem_data
structure.

12 years agoofono: Get all modems when oFono connects
Daniel Wagner [Mon, 21 Nov 2011 17:33:36 +0000 (18:33 +0100)]
ofono: Get all modems when oFono connects

When oFono appears on D-Bus ask for the Modems.

12 years agoofono: Listen to oFono's D-Bus signals
Daniel Wagner [Mon, 21 Nov 2011 17:28:01 +0000 (18:28 +0100)]
ofono: Listen to oFono's D-Bus signals

The intersting signals are from the Modem, SimManager
ConnectionManager, ConnectionContext and the NetwworkRegistration
interfaces. In this patch we add the empty functions.

12 years agoofono: Start refactoring plugin
Daniel Wagner [Wed, 2 Nov 2011 16:10:00 +0000 (17:10 +0100)]
ofono: Start refactoring plugin

Remove the old implemenation of the plugin. The
next series will add step by step the new implementation.
Moving the existing code around or updating is rather
confusing for the review.

12 years agoservice: Refactor timeserver removal function
Jukka Rissanen [Fri, 2 Dec 2011 15:06:35 +0000 (17:06 +0200)]
service: Refactor timeserver removal function

There is a memory leak in __connman_service_timeserver_remove()
so refactoring it to look more like nameserver removal func.

12 years agowifi: Add support for hidden network scan
Patrik Flykt [Fri, 2 Dec 2011 14:18:36 +0000 (16:18 +0200)]
wifi: Add support for hidden network scan

Implement connman_device_driver scan_hidden function. Supply scan
parameters for the hidden network when calling g_supplicant scan
functionality. When a new scan result is added, compare the SSID
with the one looked for. If detected, connect the hidden network.
When detected or when the scan is done, clear the hidden network
parameters.

12 years agonetwork: Add functionality to connect a hidden network
Patrik Flykt [Fri, 2 Dec 2011 14:18:35 +0000 (16:18 +0200)]
network: Add functionality to connect a hidden network

When given a struct connman_network, look up a corresponding
service. Set the earlier supplied identity and passphrase for
this service and try to connect it.

12 years agoservice: Do hidden network scan for the given SSID
Patrik Flykt [Fri, 2 Dec 2011 14:18:34 +0000 (16:18 +0200)]
service: Do hidden network scan for the given SSID

When a service is set as hidden, do a network scan for the
SSID/name supplied via the Agent API. End the connection
attempt on the original hidden service.

12 years agoservice: Factor out passphrase setting functionality
Patrik Flykt [Fri, 2 Dec 2011 14:18:33 +0000 (16:18 +0200)]
service: Factor out passphrase setting functionality

Factor out passphrase setting functionality, as it will be needed
by other parts of the hidden network code.

12 years agodevice: Add function for requesting a hidden scan
Patrik Flykt [Fri, 2 Dec 2011 14:18:32 +0000 (16:18 +0200)]
device: Add function for requesting a hidden scan

Add function for requesting a hidden (WLAN) network scan. Call
the hidden scan function is implemented by the device in question.

12 years agodevice: Introduce hidden SSID scan function
Patrik Flykt [Fri, 2 Dec 2011 14:18:31 +0000 (16:18 +0200)]
device: Introduce hidden SSID scan function

12 years agowispr: Add SSID and length variables to callback
Patrik Flykt [Fri, 2 Dec 2011 14:18:30 +0000 (16:18 +0200)]
wispr: Add SSID and length variables to callback

SSID and lenght variables are not used in wispr callback.

12 years agoagent: Add network name and name length to authentication_cb_t
Patrik Flykt [Fri, 2 Dec 2011 14:18:29 +0000 (16:18 +0200)]
agent: Add network name and name length to authentication_cb_t

12 years agoagent: Handle 'Name' and/or 'SSID' fields on method call return
Patrik Flykt [Fri, 2 Dec 2011 14:18:28 +0000 (16:18 +0200)]
agent: Handle 'Name' and/or 'SSID' fields on method call return

12 years agoagent: If a service is hidden, request either 'Name' or 'SSID'
Patrik Flykt [Fri, 2 Dec 2011 14:18:27 +0000 (16:18 +0200)]
agent: If a service is hidden, request either 'Name' or 'SSID'

Implement functions to append 'Name' and 'SSID' fields to Agent API
RequestInput D-Bus method call. Add these fields if the service is
hidden.

12 years agoservice: Helper function to check if a service is hidden
Patrik Flykt [Fri, 2 Dec 2011 14:18:26 +0000 (16:18 +0200)]
service: Helper function to check if a service is hidden

12 years agowispr: Add authentication_cb_t boolean to callback
Patrik Flykt [Fri, 2 Dec 2011 14:18:25 +0000 (16:18 +0200)]
wispr: Add authentication_cb_t boolean to callback

12 years agoservice: Use boolean variable to determine valid values
Patrik Flykt [Fri, 2 Dec 2011 14:18:24 +0000 (16:18 +0200)]
service: Use boolean variable to determine valid values

Use the provided boolean variable to determine when valid
values are passed to the authentication_cb_t function.

12 years agoagent: Be explicit when RequestInput method return provides values
Patrik Flykt [Fri, 2 Dec 2011 14:18:23 +0000 (16:18 +0200)]
agent: Be explicit when RequestInput method return provides values

Add a boolean variable to authentication_cb_t callback to explicitely
state when values are returned from RequestInput.

12 years agoservice: Return -EPERM for hidden services and prompt for input
Patrik Flykt [Fri, 2 Dec 2011 14:18:22 +0000 (16:18 +0200)]
service: Return -EPERM for hidden services and prompt for input

12 years agoservice: No modifications allowed for hidden services
Patrik Flykt [Fri, 2 Dec 2011 14:18:21 +0000 (16:18 +0200)]
service: No modifications allowed for hidden services

If a service is hidden, no modification are allowed to it.
The hidden service acts as a placeholder to instantiate
a proper connection once it is assigned an SSID.

12 years agoservice: List also hidden services
Patrik Flykt [Fri, 2 Dec 2011 14:18:20 +0000 (16:18 +0200)]
service: List also hidden services

Show hidden WiFi networks in service list.

12 years agoservice: Disconnect network when service is freed
Patrik Flykt [Fri, 2 Dec 2011 11:55:37 +0000 (13:55 +0200)]
service: Disconnect network when service is freed

Call __connman_network_disconnect() when a service is freed.
This prevents wpa_supplicant from trying to connect forever when
ConnMan is shut down.

12 years agowifi: Disable network in disconnected state
Patrik Flykt [Fri, 2 Dec 2011 11:55:36 +0000 (13:55 +0200)]
wifi: Disable network in disconnected state

Disable WiFi network when it ends up in disconnected state
in order to prevent wpa_supplicant looping forever retrying.

Fixes BMC#23973

12 years agoTODO: Update
Samuel Ortiz [Fri, 9 Dec 2011 11:09:11 +0000 (12:09 +0100)]
TODO: Update

Removed stale entries, added wireless background scanning, the command
line tool and the GNOME UI.

12 years agomanager: Remove support for GetState method and StateChanged signal
Marcel Holtmann [Sat, 10 Dec 2011 10:31:49 +0000 (12:31 +0200)]
manager: Remove support for GetState method and StateChanged signal

12 years agobuild: Remove unused list-profiles test script
Marcel Holtmann [Sat, 10 Dec 2011 10:28:45 +0000 (12:28 +0200)]
build: Remove unused list-profiles test script

12 years agomanager: Remove support for ProvisionService method
Marcel Holtmann [Sat, 10 Dec 2011 10:27:32 +0000 (12:27 +0200)]
manager: Remove support for ProvisionService method

12 years agomanager: Remove support for ConnectService method
Marcel Holtmann [Sat, 10 Dec 2011 10:25:58 +0000 (12:25 +0200)]
manager: Remove support for ConnectService method

12 years agomanager: Remove support for LookupService method
Marcel Holtmann [Sat, 10 Dec 2011 10:22:07 +0000 (12:22 +0200)]
manager: Remove support for LookupService method

12 years agodoc: Fix race conditions in service handling
Marcel Holtmann [Fri, 9 Dec 2011 12:11:59 +0000 (14:11 +0200)]
doc: Fix race conditions in service handling

12 years agodoc: Fix race conditions in technology handling
Marcel Holtmann [Fri, 9 Dec 2011 11:37:27 +0000 (13:37 +0200)]
doc: Fix race conditions in technology handling

12 years agodoc: Make session methods as experimental for now
Marcel Holtmann [Fri, 9 Dec 2011 11:36:50 +0000 (13:36 +0200)]
doc: Make session methods as experimental for now

12 years agodoc: Remove methods to lookup and connect services
Marcel Holtmann [Fri, 9 Dec 2011 11:29:52 +0000 (13:29 +0200)]
doc: Remove methods to lookup and connect services

12 years agodoc: Remove method for handling provisioning
Marcel Holtmann [Fri, 9 Dec 2011 11:29:19 +0000 (13:29 +0200)]
doc: Remove method for handling provisioning

12 years agodoc: Remove extra method and property for global state
Marcel Holtmann [Fri, 9 Dec 2011 11:28:56 +0000 (13:28 +0200)]
doc: Remove extra method and property for global state

12 years agodoc: Remove leftover property from profile support
Marcel Holtmann [Fri, 9 Dec 2011 11:27:25 +0000 (13:27 +0200)]
doc: Remove leftover property from profile support

12 years agodoc: Mark session mode property as experimental
Marcel Holtmann [Fri, 9 Dec 2011 11:26:40 +0000 (13:26 +0200)]
doc: Mark session mode property as experimental

12 years agodoc: Remove deprecated properties and values
Marcel Holtmann [Fri, 9 Dec 2011 11:24:44 +0000 (13:24 +0200)]
doc: Remove deprecated properties and values

12 years agodoc: Make counter related method as experimental
Marcel Holtmann [Fri, 9 Dec 2011 11:24:28 +0000 (13:24 +0200)]
doc: Make counter related method as experimental

12 years agodoc: Update properties and methods for technology interface
Marcel Holtmann [Fri, 9 Dec 2011 11:16:19 +0000 (13:16 +0200)]
doc: Update properties and methods for technology interface

12 years agodoc: Mark clock API as experimental for now
Marcel Holtmann [Fri, 9 Dec 2011 11:14:03 +0000 (13:14 +0200)]
doc: Mark clock API as experimental for now

12 years agodoc: Add method description for browser agent callback
Marcel Holtmann [Fri, 9 Dec 2011 11:13:20 +0000 (13:13 +0200)]
doc: Add method description for browser agent callback

12 years agoRelease 0.78
Marcel Holtmann [Fri, 2 Dec 2011 17:54:40 +0000 (18:54 +0100)]
Release 0.78

12 years agotechnology: Check if pending message is NULL before sending it back
Samuel Ortiz [Thu, 1 Dec 2011 11:21:41 +0000 (12:21 +0100)]
technology: Check if pending message is NULL before sending it back

The message would be NULL when setting offline mode on and off.

Fixes BMC#24314

12 years agoservice: Make state downgrading routine static
Tomasz Bursztyka [Wed, 30 Nov 2011 11:16:29 +0000 (13:16 +0200)]
service: Make state downgrading routine static

service.c should be the only one messing with service's states.

12 years agoservice: Recompute service state when moving it up
Tomasz Bursztyka [Wed, 30 Nov 2011 11:16:28 +0000 (13:16 +0200)]
service: Recompute service state when moving it up

It should be possible to move down an online service to ready and the one
which goes up might come up online after recomputing its state.

12 years agoservice: Only one service should be online at a time
Tomasz Bursztyka [Wed, 30 Nov 2011 11:16:27 +0000 (13:16 +0200)]
service: Only one service should be online at a time

All services which can go online don't get their state to online if a service
is already online. However, when disconnecting a service, we might recompute
which one gets online in replacement.

12 years agoservice: Ensure the service list is well sorted after each update
Tomasz Bursztyka [Thu, 1 Dec 2011 10:43:05 +0000 (12:43 +0200)]
service: Ensure the service list is well sorted after each update

Fixes BMC#23715

12 years agowifi: Set device powered from the interface create callback
Samuel Ortiz [Tue, 29 Nov 2011 14:00:52 +0000 (15:00 +0100)]
wifi: Set device powered from the interface create callback

As interface_added can potentially show up before the interface creation
callback, the device powered flag can be set from the latter.

12 years agoofono: Do not call set_connected() from the activation reply
Yu A Wang [Thu, 24 Nov 2011 11:52:44 +0000 (06:52 -0500)]
ofono: Do not call set_connected() from the activation reply

As the IP setting may not be set when getting the activation D-Bus reply,
set_connected should not be called at that point but rather from
the context_changed routine.

Fixes BMC#24284

12 years agotethering: Avoid removing dhcp server twice.
Jukka Rissanen [Fri, 25 Nov 2011 15:06:27 +0000 (17:06 +0200)]
tethering: Avoid removing dhcp server twice.

The tethering_dhcp_server pointer needs to be cleared as
otherwise the __connman_tethering_cleanup() will call it again.

12 years agowifi: The remove interface callback used stale pointer.
Jukka Rissanen [Fri, 25 Nov 2011 15:06:16 +0000 (17:06 +0200)]
wifi: The remove interface callback used stale pointer.

When a wlan interface is removed we call proper method in
supplicant dbus interface. As the return message from supplicant
might come very late, we must not use the wifi pointer as
user data in interface remove callback. This is because the wifi
pointer might be removed before the answer comes from supplicant and
the callback user data pointer would not be valid at that point.

12 years agowifi: Add debugging in order to find memory problems.
Jukka Rissanen [Fri, 25 Nov 2011 15:05:49 +0000 (17:05 +0200)]
wifi: Add debugging in order to find memory problems.

12 years agoipconfig: Remove ipconfig from ipconfig_list
Jukka Rissanen [Fri, 25 Nov 2011 15:05:37 +0000 (17:05 +0200)]
ipconfig: Remove ipconfig from ipconfig_list

It is possible that ipdevice does not contain ipconfig for
some reason. If that happens, then ipconfig is not removed
from ipconfig_list which will then escalate into freed memory
access when interface is taken down.
The problem was seen with valgrind when tethering was enabled
and then disabled for wifi.

12 years ago6to4: Use the right interface index with gweb
Tomasz Bursztyka [Fri, 25 Nov 2011 11:03:05 +0000 (13:03 +0200)]
6to4: Use the right interface index with gweb

12 years agowispr: Use the right interface index with gweb
Tomasz Bursztyka [Fri, 25 Nov 2011 11:03:04 +0000 (13:03 +0200)]
wispr: Use the right interface index with gweb

12 years agogweb: Bind socket to the right interface
Tomasz Bursztyka [Fri, 25 Nov 2011 11:03:03 +0000 (13:03 +0200)]
gweb: Bind socket to the right interface

12 years agogresolv: Bind socket to the right interface
Tomasz Bursztyka [Fri, 25 Nov 2011 11:03:02 +0000 (13:03 +0200)]
gresolv: Bind socket to the right interface

12 years agotechnology: Save the pending reply only when the status is inprogress
Yu A Wang [Thu, 24 Nov 2011 03:04:17 +0000 (22:04 -0500)]
technology: Save the pending reply only when the status is inprogress

For ethernet device, there is no need to save a pending reply as
the technology enablement is synchronous.

Fixes BMC#24249

12 years agoservice: Support automatically added nameservers
Jukka Rissanen [Wed, 23 Nov 2011 15:06:20 +0000 (17:06 +0200)]
service: Support automatically added nameservers

IPv6 autoconfigured nameservers can be added to resolver
via netlink messages in rtnl.c. Because of this they are
not seen in service object so we need to get those auto
added nameserver to be added in service.c so that
service can show them to user if necessary.

Fixes BMC#24196

12 years agostorage: Add default values to settings file.
Alok Barsode [Thu, 29 Sep 2011 10:53:04 +0000 (13:53 +0300)]
storage: Add default values to settings file.

On a clean start (without default.profile) create the settings file
with default values. Here is a list of default values:

Offlinemode = off.
Wifi = disabled.
bluetooth = disabled.
ethernet = disabled.
3G = disabled.
WiMAX = disabled.

The reason for offlinemode to be off here is that any changes to
the technology will not be recorded if we start in offlinemode.

Fixes BMC#24285

12 years agodnsproxy: Do not copy two extra bytes if using TCP
Jukka Rissanen [Wed, 23 Nov 2011 13:31:39 +0000 (15:31 +0200)]
dnsproxy: Do not copy two extra bytes if using TCP

12 years agodnsproxy: Get rid of extra strlen() calls
Jukka Rissanen [Wed, 23 Nov 2011 13:31:38 +0000 (15:31 +0200)]
dnsproxy: Get rid of extra strlen() calls

12 years agodnsproxy: One extra garbage byte was sent at the end of the message
Jukka Rissanen [Wed, 23 Nov 2011 13:31:37 +0000 (15:31 +0200)]
dnsproxy: One extra garbage byte was sent at the end of the message

Fixes BMC#24253

12 years agoservice: Fix memory leak in service_load()
Daniel Wagner [Mon, 21 Nov 2011 15:18:02 +0000 (16:18 +0100)]
service: Fix memory leak in service_load()

12 years agoservice: Set network_created flag only if create_hidden_wifi succeeds
Tomasz Bursztyka [Mon, 21 Nov 2011 08:51:42 +0000 (10:51 +0200)]
service: Set network_created flag only if create_hidden_wifi succeeds

12 years agoofono: Don't set network index when device is removed
Yu A Wang [Thu, 10 Nov 2011 05:08:34 +0000 (00:08 -0500)]
ofono: Don't set network index when device is removed

A NULL interface means the device is removed so there is no need for
setting the network index as it will eventually be removed.
Setting the network index to -1 prevents wpad or wispr to unreference
the service.

Fixes BMC#23979

12 years agoservice: network_created is set only for hidden services
Tomasz Bursztyka [Fri, 18 Nov 2011 13:08:52 +0000 (15:08 +0200)]
service: network_created is set only for hidden services

Fixes BMC#23976

12 years agoplugins: Don't attempt to save strings with value NULL
Patrik Flykt [Wed, 16 Nov 2011 10:33:56 +0000 (12:33 +0200)]
plugins: Don't attempt to save strings with value NULL

If a string with value NULL is set with g_key_file_set_string(),
a critical glib error will be printed.

12 years agonetwork: connman_network_set_nameservers() handle NULL argument correctly
Daniel Wagner [Wed, 16 Nov 2011 14:09:51 +0000 (15:09 +0100)]
network: connman_network_set_nameservers() handle NULL argument correctly

Trying to access an array pointer which points to NULL is generally a
bad idea. Instead just return early.

12 years agonotifier: Remove service from hash in error case
Daniel Wagner [Tue, 15 Nov 2011 17:12:17 +0000 (18:12 +0100)]
notifier: Remove service from hash in error case

CONNMAN_SERVICE_STATE_FAILURE should be treated in the same
way as CONNMAN_SERVICE_STATE_DISCONNECT or CONNMAN_SERVICE_STATE_IDLE
in  __connman_notifier_service_state_changed().

This should help to reduce the "Service state machine inconsistency detected."
error message.

12 years agonetwork: Call indicate error function in error case
Daniel Wagner [Tue, 15 Nov 2011 16:49:01 +0000 (17:49 +0100)]
network: Call indicate error function in error case

Setting the error only on one ipconfig type e.g. IPv4 is not enough.
service.c:combine_state() will report to stay in associating state:

src/service.c:service_indicate_state() service 0x6b1a60 old association - new failure/association => association

After applying the patch it loosk like this:

src/service.c:service_indicate_state() service 0x6b1f70 old association - new failure/association => association
src/service.c:service_indicate_state() service 0x6b1f70 old association - new failure/failure => failure

12 years agol2tp: Config save support added
Jukka Rissanen [Tue, 15 Nov 2011 11:06:31 +0000 (13:06 +0200)]
l2tp: Config save support added