platform/upstream/connman.git
13 years agoWPA-EAP support for GSupplicant
Samuel Ortiz [Thu, 16 Sep 2010 14:43:27 +0000 (16:43 +0200)]
WPA-EAP support for GSupplicant

13 years agoWEP and WPA-PSK support for GSupplicant
Samuel Ortiz [Thu, 16 Sep 2010 10:34:48 +0000 (12:34 +0200)]
WEP and WPA-PSK support for GSupplicant

13 years agoPrioritize wifi plugins
Samuel Ortiz [Wed, 15 Sep 2010 15:42:06 +0000 (17:42 +0200)]
Prioritize wifi plugins

The legacy one as the default wifi plugin.

13 years agoMove current wifi plugin to legacy
Samuel Ortiz [Wed, 15 Sep 2010 22:21:23 +0000 (00:21 +0200)]
Move current wifi plugin to legacy

The current wifi plugin is replaced by the new API one and is renamed to
wifi-legacy.c.

13 years agoGet device interface through the get_string() routine
Samuel Ortiz [Wed, 15 Sep 2010 13:33:43 +0000 (15:33 +0200)]
Get device interface through the get_string() routine

13 years agoGSupplicant intial commit
Samuel Ortiz [Wed, 15 Sep 2010 21:42:16 +0000 (23:42 +0200)]
GSupplicant intial commit

13 years agoAdd support for PAC runner configuration updates
Marcel Holtmann [Mon, 20 Sep 2010 01:02:47 +0000 (10:02 +0900)]
Add support for PAC runner configuration updates

13 years agoAdd support for retrieving proxy auto configuration URL
Marcel Holtmann [Mon, 20 Sep 2010 00:59:27 +0000 (09:59 +0900)]
Add support for retrieving proxy auto configuration URL

13 years agoIgnore Bluetooth adapter if its address is 00:00:00:00:00:00
Martin Xu [Sun, 19 Sep 2010 08:31:01 +0000 (16:31 +0800)]
Ignore Bluetooth adapter if its address is 00:00:00:00:00:00

13 years agoAdd skeleton for PAC runner support
Marcel Holtmann [Sun, 19 Sep 2010 06:32:15 +0000 (15:32 +0900)]
Add skeleton for PAC runner support

13 years agoUpdate config-format.txt with Name vs SSID explanations
Samuel Ortiz [Thu, 16 Sep 2010 23:16:58 +0000 (01:16 +0200)]
Update config-format.txt with Name vs SSID explanations

13 years agoAdd __connman_service_get_security function
Patrik Flykt [Fri, 17 Sep 2010 10:15:23 +0000 (13:15 +0300)]
Add __connman_service_get_security function

Add helper function to access the security enum attribute of a service.

13 years agoMention Pekka's contributions
Samuel Ortiz [Thu, 16 Sep 2010 10:56:13 +0000 (12:56 +0200)]
Mention Pekka's contributions

13 years agoMention Fabien's contributions
Samuel Ortiz [Thu, 16 Sep 2010 10:55:09 +0000 (12:55 +0200)]
Mention Fabien's contributions

13 years agoFix a crash when doing PEAP/TTLS authentication
Fabien Marotte [Thu, 16 Sep 2010 07:52:43 +0000 (09:52 +0200)]
Fix a crash when doing PEAP/TTLS authentication

When doing a PEAP/TTLS authentication, if the Phase2 passphrase is
not provided, connman crashes due to a NULL pointer.
This patch fixes the crash.

Fixes BMC #6841

13 years agoAdd messages in supplicant plugin
Fabien Marotte [Wed, 15 Sep 2010 09:51:12 +0000 (11:51 +0200)]
Add messages in supplicant plugin

This patch adds error and info messages in case connman detects
missing parameters when doing a TLS or a PEAP/TTLS authentication.

13 years agoAdd verification of the .config file parameters
Fabien Marotte [Wed, 15 Sep 2010 09:51:11 +0000 (11:51 +0200)]
Add verification of the .config file parameters

Connman reads the *.config files in STORAGE_DIR during its boot but
it looks only for parameters it is interrested in.
The configuration parameters syntax is complex and it is very
simple to make a mistake without getting connman warnings. This
leads the user to think that connman understands the configuration
file although it doesn't.

This patch is the code that adds warnings to the logs if connman
reads unknown parameters from the *.config files.

13 years agoMove configuration key strings to be #define
Fabien Marotte [Wed, 15 Sep 2010 09:51:10 +0000 (11:51 +0200)]
Move configuration key strings to be #define

13 years agoelement: remove unnecessary checks
Pekka Pessi [Fri, 10 Sep 2010 12:11:34 +0000 (15:11 +0300)]
element: remove unnecessary checks

Do not check for null pointers after accessing data.

13 years agoSmall style cleanup for readability
Marcel Holtmann [Mon, 13 Sep 2010 22:42:34 +0000 (07:42 +0900)]
Small style cleanup for readability

13 years agoCheck harder for -lresolv
Pekka Pessi [Fri, 10 Sep 2010 12:11:23 +0000 (15:11 +0300)]
Check harder for -lresolv

Older Debians and friends expose __ns_initparse and their resolv.h
defines ns_initparse is __ns_initparse.

13 years agoRemove two pointless whitespaces
Marcel Holtmann [Sat, 11 Sep 2010 10:36:44 +0000 (12:36 +0200)]
Remove two pointless whitespaces

13 years agoHandle potential NULL pointer with DHCP options
Marcel Holtmann [Sat, 11 Sep 2010 10:35:42 +0000 (12:35 +0200)]
Handle potential NULL pointer with DHCP options

13 years agoRelease 0.61 0.61
Marcel Holtmann [Fri, 10 Sep 2010 09:24:11 +0000 (11:24 +0200)]
Release 0.61

13 years agoRemove leftover defines
Marcel Holtmann [Fri, 10 Sep 2010 09:20:37 +0000 (11:20 +0200)]
Remove leftover defines

13 years agoImplement the ModemAdded and ModemRemoved signal handlers
Samuel Ortiz [Thu, 9 Sep 2010 22:57:21 +0000 (00:57 +0200)]
Implement the ModemAdded and ModemRemoved signal handlers

13 years agoFix typo: modem_removed is linked to the MODEM_REMOVED signal
Samuel Ortiz [Thu, 9 Sep 2010 22:56:21 +0000 (00:56 +0200)]
Fix typo: modem_removed is linked to the MODEM_REMOVED signal

13 years agoSupport the new oFono Manager API
Samuel Ortiz [Thu, 9 Sep 2010 22:30:30 +0000 (00:30 +0200)]
Support the new oFono Manager API

GetModems() is called at startup, and ModemAdded and ModemRemoved are
being monitored.

13 years agoFix debug message formatting
Samuel Ortiz [Thu, 9 Sep 2010 18:24:40 +0000 (20:24 +0200)]
Fix debug message formatting

13 years agoFix error message formatting
Samuel Ortiz [Thu, 9 Sep 2010 18:21:36 +0000 (20:21 +0200)]
Fix error message formatting

13 years agoExtend the D-Bus timeout for slow modems
Samuel Ortiz [Thu, 9 Sep 2010 17:46:00 +0000 (19:46 +0200)]
Extend the D-Bus timeout for slow modems

13 years agoPower the ConnectionManager interface up when it shows up
Samuel Ortiz [Thu, 9 Sep 2010 17:45:15 +0000 (19:45 +0200)]
Power the ConnectionManager interface up when it shows up

13 years agoofono: use new oFono GPRS interfaces
Pekka Pessi [Thu, 9 Sep 2010 13:35:58 +0000 (15:35 +0200)]
ofono: use new oFono GPRS interfaces

The plugin keeps now a hash table for networks.

The improved oFono GPRS interface (ConnectionManager) relay the complete
network information in ContextAdded signal and in GetContexts reply.  A
connman_network is immediately created for each Internet context.

The kludge used to create a new context in case the initial context list
was empty is removed.

The oFono context interface (ContextManager) has no essential changes,
it is just removed.

Information from the oFono NetworkRegistration interface is now cached
in the connman_device.  Cached registration information is stored in the
newly created connman_network, too. Later changes in the registration
info get propagated to the connman_network.

TODO:
        - handle ConnectionManager.ContextAdded
        - handle ConnectionManager.ContextRemoved

13 years agoofono: use Modem Online property
Pekka Pessi [Thu, 26 Aug 2010 14:26:50 +0000 (17:26 +0300)]
ofono: use Modem Online property

Modem Online property gets controlled with the cellular device Powered
property.

As the oFono plugin needs to get the Powered state from the device it
gets created when the SIM is ready.

The GPRS networks get added after ConnMan can access the GPRS interface.

As a side effect the oFono modems which do support Online but do not
support GPRS are also visible in ConnMan.

The ConnMan device gets now removed when the SIM is removed or the IMSI
changes.

13 years agodevice: add connman_device_get_ident()
Pekka Pessi [Thu, 26 Aug 2010 14:26:49 +0000 (17:26 +0300)]
device: add connman_device_get_ident()

Expose former core function __connman_device_get_ident().

13 years agoofono: refactor modem_has_gprs()
Pekka Pessi [Thu, 26 Aug 2010 14:26:48 +0000 (17:26 +0300)]
ofono: refactor modem_has_gprs()

13 years agoofono: refactor sim
Pekka Pessi [Thu, 26 Aug 2010 14:26:47 +0000 (17:26 +0300)]
ofono: refactor sim

MCC and MNC are no more propagated to the service.

13 years agoofono: refactor pri_context_changed handler
Pekka Pessi [Thu, 26 Aug 2010 14:26:46 +0000 (17:26 +0300)]
ofono: refactor pri_context_changed handler

Do not use pending_network outside pri_context_changed.

13 years agoofono: fix pending_network_is_available()
Pekka Pessi [Thu, 26 Aug 2010 14:26:45 +0000 (17:26 +0300)]
ofono: fix pending_network_is_available()

connman_network_get_device() returns NULL if network has been removed.

13 years agoofono: don't reuse identifier pending_network
Pekka Pessi [Thu, 26 Aug 2010 14:26:44 +0000 (17:26 +0300)]
ofono: don't reuse identifier pending_network

13 years agoofono: fix add_network()
Pekka Pessi [Thu, 26 Aug 2010 14:26:43 +0000 (17:26 +0300)]
ofono: fix add_network()

Protect against duplication, remove leak.

13 years agoofono: do not strdup in get_ident()
Pekka Pessi [Thu, 26 Aug 2010 14:26:42 +0000 (17:26 +0300)]
ofono: do not strdup in get_ident()

Fix leak if network creation fails.

13 years agoofono: refactor dbus calls
Pekka Pessi [Thu, 26 Aug 2010 14:26:41 +0000 (17:26 +0300)]
ofono: refactor dbus calls

Use call_ofono() wrapper.

13 years agoofono: avoid race between signals and methods
Pekka Pessi [Thu, 26 Aug 2010 14:26:40 +0000 (17:26 +0300)]
ofono: avoid race between signals and methods

Create modem only after Modem.GetProperties succeeds, thus avoiding
races with Modem.PropertyChanged signal. Do not call Modem.GetProperties
again while modem exists.

13 years agoofono: fix stale data usage
Pekka Pessi [Thu, 26 Aug 2010 14:26:39 +0000 (17:26 +0300)]
ofono: fix stale data usage

13 years agoofono: log more of the errors
Pekka Pessi [Thu, 9 Sep 2010 10:13:52 +0000 (12:13 +0200)]
ofono: log more of the errors

13 years agoofono: refactor SetProperty D-Bus calls
Pekka Pessi [Thu, 9 Sep 2010 10:07:23 +0000 (12:07 +0200)]
ofono: refactor SetProperty D-Bus calls

13 years agoRemove the no longer needed security framework
Marcel Holtmann [Thu, 9 Sep 2010 16:53:57 +0000 (18:53 +0200)]
Remove the no longer needed security framework

D-Bus security policies can now be set directly via the method tables.

13 years agoUse D-Bus constants for PolicyKit plugin
Marcel Holtmann [Thu, 9 Sep 2010 16:47:25 +0000 (18:47 +0200)]
Use D-Bus constants for PolicyKit plugin

13 years agoUpdate support for PolicyKit with GDBus security integration
Marcel Holtmann [Thu, 9 Sep 2010 16:44:06 +0000 (18:44 +0200)]
Update support for PolicyKit with GDBus security integration

13 years agoAdd gdbus/polkit.c file to sources list
Marcel Holtmann [Thu, 9 Sep 2010 16:29:01 +0000 (18:29 +0200)]
Add gdbus/polkit.c file to sources list

13 years agoAdd support for builtin GDBus security using PolicyKit
Marcel Holtmann [Thu, 9 Sep 2010 15:04:40 +0000 (17:04 +0200)]
Add support for builtin GDBus security using PolicyKit

13 years agoAdd support for GDBus security action and flags
Marcel Holtmann [Thu, 9 Sep 2010 14:39:46 +0000 (16:39 +0200)]
Add support for GDBus security action and flags

13 years agoUse simpler error callbacks for GDBus security hooks
Marcel Holtmann [Sun, 29 Aug 2010 10:31:20 +0000 (06:31 -0400)]
Use simpler error callbacks for GDBus security hooks

13 years agoAdd support for GDBus security handlers
Marcel Holtmann [Sat, 28 Aug 2010 22:18:47 +0000 (00:18 +0200)]
Add support for GDBus security handlers

13 years agoMake the internal DHCP client the default now
Marcel Holtmann [Wed, 8 Sep 2010 18:41:29 +0000 (20:41 +0200)]
Make the internal DHCP client the default now

13 years agoRelease 0.60 0.60
Marcel Holtmann [Wed, 8 Sep 2010 18:20:18 +0000 (20:20 +0200)]
Release 0.60

13 years agonetwork: don't connect if already removed
Pekka Pessi [Mon, 30 Aug 2010 15:21:12 +0000 (18:21 +0300)]
network: don't connect if already removed

13 years agonetwork: don't add into profile while unregistered
Pekka Pessi [Mon, 30 Aug 2010 15:21:11 +0000 (18:21 +0300)]
network: don't add into profile while unregistered

The connman_network_set_group() created an extra ref to service if it
was called before network was probed and registered.

13 years agoservice: debug log ref and unref
Pekka Pessi [Mon, 30 Aug 2010 15:21:10 +0000 (18:21 +0300)]
service: debug log ref and unref

13 years agoRevert "service: don't keep ref to a removed network"
Pekka Pessi [Mon, 30 Aug 2010 15:21:09 +0000 (18:21 +0300)]
Revert "service: don't keep ref to a removed network"

This reverts commit 485625099ef90e11099157dd72fbbebe04a74680.

13 years agoSet the devices offline mode to FALSE when setting the Powered property
Samuel Ortiz [Wed, 8 Sep 2010 17:23:51 +0000 (19:23 +0200)]
Set the devices offline mode to FALSE when setting the Powered property

13 years agoFix calling watch callbacks after it has been removed
Luiz Augusto von Dentz [Mon, 6 Sep 2010 13:39:41 +0000 (16:39 +0300)]
Fix calling watch callbacks after it has been removed

Pending call should be removed if the watch is removed since the
application no longer expect that to be reached and may already freed the
data associated with it.

13 years agoFix signal watch when a service name is given
Luiz Augusto Von Dentz [Mon, 6 Sep 2010 10:26:20 +0000 (13:26 +0300)]
Fix signal watch when a service name is given

The bus name should be resolved when adding a watch by service name since
messages do always come with sender set to owner's bus name, also it
should listen to owner updates since it can change without invalidating
the watch.

13 years agoDo not automatically remove watches for service names
Luiz Augusto Von Dentz [Mon, 6 Sep 2010 10:26:19 +0000 (13:26 +0300)]
Do not automatically remove watches for service names

Services can be owned again so it is perfectly fine to keep the watch.

13 years agoTry to detect portal even if the location driver is already set
Samuel Ortiz [Wed, 8 Sep 2010 14:42:18 +0000 (16:42 +0200)]
Try to detect portal even if the location driver is already set

With DHCP renewals the ConnMan state can go from Online to Ready and a
location detect will start. Since the location driver is already set by
then, this will fail and ConnMan's state will be stuck at Ready. Instead
of returning an error, the location finish() hooks is called and a new
portal detection is triggered.

13 years agoSend Ethernet property changed signal when the ipconfig layer is enabled
Samuel Ortiz [Wed, 8 Sep 2010 09:50:01 +0000 (11:50 +0200)]
Send Ethernet property changed signal when the ipconfig layer is enabled

13 years agoReset proxy setting when disconnecting
Samuel Ortiz [Tue, 7 Sep 2010 14:59:04 +0000 (16:59 +0200)]
Reset proxy setting when disconnecting

13 years agoservice: don't keep ref to a removed network
Pekka Pessi [Thu, 26 Aug 2010 14:26:36 +0000 (17:26 +0300)]
service: don't keep ref to a removed network

13 years agodevice: remove stale pointer from network
Pekka Pessi [Thu, 26 Aug 2010 14:26:35 +0000 (17:26 +0300)]
device: remove stale pointer from network

13 years agoIngnore the offline operation of the blocked device
Martin Xu [Fri, 27 Aug 2010 06:10:32 +0000 (14:10 +0800)]
Ingnore the offline operation of the blocked device

13 years agoRelease 0.59 0.59
Marcel Holtmann [Sat, 21 Aug 2010 22:11:28 +0000 (00:11 +0200)]
Release 0.59

13 years agoEnsure that all provider object paths are valid
Marcel Holtmann [Sat, 21 Aug 2010 21:59:51 +0000 (23:59 +0200)]
Ensure that all provider object paths are valid

13 years agoEnsure to also replace colon in provider D-Bus object path
Marcel Holtmann [Sat, 21 Aug 2010 21:53:26 +0000 (23:53 +0200)]
Ensure to also replace colon in provider D-Bus object path

13 years agoRelease 0.58 0.58
Marcel Holtmann [Sat, 21 Aug 2010 09:36:49 +0000 (11:36 +0200)]
Release 0.58

13 years agoFix VPN nameservers parsing
Samuel Ortiz [Fri, 20 Aug 2010 23:32:24 +0000 (01:32 +0200)]
Fix VPN nameservers parsing

13 years agoDisconnect VPNs when no physical services are left
Samuel Ortiz [Fri, 20 Aug 2010 22:51:26 +0000 (00:51 +0200)]
Disconnect VPNs when no physical services are left

This was previously handled by the provider notifier code, but with the
VPNs being moved to the service list top, it has to be handled from the
service layer directly.

13 years agoDefault service change notification when going online
Samuel Ortiz [Fri, 20 Aug 2010 00:22:57 +0000 (02:22 +0200)]
Default service change notification when going online

13 years agoVPN services should have the highest order
Samuel Ortiz [Fri, 20 Aug 2010 00:16:21 +0000 (02:16 +0200)]
VPN services should have the highest order

13 years agoVPN services also have an interface
Samuel Ortiz [Fri, 20 Aug 2010 00:14:32 +0000 (02:14 +0200)]
VPN services also have an interface

Although they don't have any networks, they have an interface.

13 years agoSet VPN services as the default ones
Samuel Ortiz [Fri, 20 Aug 2010 00:12:03 +0000 (02:12 +0200)]
Set VPN services as the default ones

With full-tunnel VPNs, the default service should be the VPN one.

13 years agoService lookup based on interface index
Samuel Ortiz [Fri, 20 Aug 2010 00:08:15 +0000 (02:08 +0200)]
Service lookup based on interface index

This routine allows to go from an interface index to a service pointer.

13 years agoerror: fix warning about formatting string
Pekka Pessi [Fri, 20 Aug 2010 16:26:39 +0000 (19:26 +0300)]
error: fix warning about formatting string

13 years agoMake backtrace script a bit more generic
Marcel Holtmann [Fri, 20 Aug 2010 12:43:50 +0000 (14:43 +0200)]
Make backtrace script a bit more generic

13 years agoMove the backtrace functions to a different place
Marcel Holtmann [Fri, 20 Aug 2010 12:40:59 +0000 (14:40 +0200)]
Move the backtrace functions to a different place

13 years agoFix iptables-test to work with iptables 1.4.9
Robert Piasek [Thu, 19 Aug 2010 20:02:44 +0000 (21:02 +0100)]
Fix iptables-test to work with iptables 1.4.9

Starting with version 1.4.9 iptables dropped xtables_set_revision
function. This patch removes any use of it.

13 years agoRemove wrong comma from D-Bus error message helper
Marcel Holtmann [Thu, 19 Aug 2010 17:38:01 +0000 (19:38 +0200)]
Remove wrong comma from D-Bus error message helper

13 years agoAdd printf format attribute for error creation helper
Marcel Holtmann [Thu, 19 Aug 2010 17:35:04 +0000 (19:35 +0200)]
Add printf format attribute for error creation helper

13 years agoFix whitespace damage
Daniel Wagner [Thu, 19 Aug 2010 07:33:22 +0000 (09:33 +0200)]
Fix whitespace damage

13 years agoAdd support for roaming/home network statistic
Daniel Wagner [Wed, 18 Aug 2010 15:56:06 +0000 (17:56 +0200)]
Add support for roaming/home network statistic

Currently connman only has one set of counters for
collecting statistics on online time and
the amount of transfered bytes.

For 3G connections we should destinguish between
home network and roaming. This patch introduces
two sets of counter values for home network
and roaming network.

Changing from Home to Roaming counters relies on
connman_network_set_roaming being called. Currently,
this is only done in the ofono plugin. Getting Wifi
'Hot-Spot Provider' Roaming (e.g.  T-Mobile Germany
to T-Mobile USA) is not yet working.

13 years agoRemove "__connman" prefix from static functions
Daniel Wagner [Wed, 18 Aug 2010 11:37:27 +0000 (13:37 +0200)]
Remove "__connman" prefix from static functions

__connman prefixes are for non static functions
exported to all connman core code (but not plugins).

connman prefixes are for non static functions
exported to all connman (core and plugins).

13 years agoAdd configuration file naming rules to documentation
Fabien Marotte [Wed, 18 Aug 2010 13:56:45 +0000 (15:56 +0200)]
Add configuration file naming rules to documentation

In case the user provides configuration files to connman, the
file name must respect some rules.

13 years agoAlways check for ns_initparse
Pekka Pessi [Tue, 17 Aug 2010 15:21:09 +0000 (18:21 +0300)]
Always check for ns_initparse

ns_initparse is used by gresolv, too.

13 years agoBacktrace support documentation
Samuel Ortiz [Tue, 17 Aug 2010 15:49:01 +0000 (17:49 +0200)]
Backtrace support documentation

13 years agoFix backtrace script formatting and mode bits
Samuel Ortiz [Tue, 17 Aug 2010 15:48:32 +0000 (17:48 +0200)]
Fix backtrace script formatting and mode bits

13 years agoConnMan backtrace support
Samuel Ortiz [Tue, 17 Aug 2010 15:10:46 +0000 (17:10 +0200)]
ConnMan backtrace support

Add a generic signal handler in order to dump ConnMan backtrace when
crashing. The implementation is based on glibc backtrace() routines and
thus can not resolve static function names. A little python wrapper over
addr2line fixes that by taking a full backtrace from a complete connman
log file.

13 years agoRemove some pointless spaces violating the coding style
Marcel Holtmann [Tue, 17 Aug 2010 14:46:52 +0000 (16:46 +0200)]
Remove some pointless spaces violating the coding style

13 years agoAdd support for EAP-TTLS configuration
Fabien Marotte [Tue, 17 Aug 2010 13:03:57 +0000 (15:03 +0200)]
Add support for EAP-TTLS configuration

EAP-TTLS and EAP-PEAP are similar in terms of options to pass to
wpa_supplicant. So in case of TTLS, the PEAP path is used.

13 years agoAdd more debug statements to DHCP library
Marcel Holtmann [Tue, 17 Aug 2010 10:42:54 +0000 (12:42 +0200)]
Add more debug statements to DHCP library

13 years agoSave profile when enabling device while in offline mode
Samuel Ortiz [Mon, 16 Aug 2010 13:09:50 +0000 (15:09 +0200)]
Save profile when enabling device while in offline mode

The profile is no longer offline when doing so and that state change
should be stored.