platform/upstream/connman.git
12 years agoconfig: Remove unused function
Jukka Rissanen [Mon, 28 May 2012 07:04:50 +0000 (10:04 +0300)]
config: Remove unused function

12 years agoagent: Update __connman_agent_report_error to return -EINPROGRESS
Patrik Flykt [Wed, 23 May 2012 12:24:57 +0000 (15:24 +0300)]
agent: Update __connman_agent_report_error to return -EINPROGRESS

Handle the change from -EIO to -EINPROGRESS return value in
service.c.

12 years agoagent: Update functions used by wispr to send -EINPROGRESS
Patrik Flykt [Wed, 23 May 2012 12:24:56 +0000 (15:24 +0300)]
agent: Update functions used by wispr to send -EINPROGRESS

Handle the change from -EIO to -EINPROGRESS return value in
wispr.c.

12 years agoagent: Return -EINPROGRESS when request passphrase calls an agent
Patrik Flykt [Wed, 23 May 2012 12:24:55 +0000 (15:24 +0300)]
agent: Return -EINPROGRESS when request passphrase calls an agent

As a result of returning -EINPROGRESS, the code in service.c can be
simplified.

12 years agoservice: Remove unnecessary setting of ipconfing to failure
Patrik Flykt [Wed, 23 May 2012 12:24:54 +0000 (15:24 +0300)]
service: Remove unnecessary setting of ipconfing to failure

With this change service Connect will not report failure but
instead wait for the Agent API to complete. The remaining
__connman_network_disconnect() will reset ipconfig to IDLE
state. If a service were set to failure state, the service
would be ignored in later autoconnects.

12 years agowifi: Stop autoscan in the relevant place.
Tomasz Bursztyka [Fri, 25 May 2012 08:17:42 +0000 (11:17 +0300)]
wifi: Stop autoscan in the relevant place.

If not stopped before checking the scanning status of the device, we might
not raise a user initiated scan just because an autoscan is going one which
is bogus.

12 years agowifi: Check device is not already scanning before a new scan.
Tomasz Bursztyka [Fri, 25 May 2012 08:17:41 +0000 (11:17 +0300)]
wifi: Check device is not already scanning before a new scan.

gsupplicant's interface scanning value is slow to be updated since it's wpa_s event
which updates it, thus leading to a time gap where it is possible to request another scan.
It will therefore reference once again device, which will lead to too many references hold
by wifi plugin

12 years agowifi: If scanning, unref the device when removing wifi driver.
Tomasz Bursztyka [Fri, 25 May 2012 08:17:40 +0000 (11:17 +0300)]
wifi: If scanning, unref the device when removing wifi driver.

12 years agowifi: Scanning is set to false in case of effective autoscan stop.
Tomasz Bursztyka [Fri, 25 May 2012 08:17:39 +0000 (11:17 +0300)]
wifi: Scanning is set to false in case of effective autoscan stop.

12 years agodevice: Make scanning getter method public.
Tomasz Bursztyka [Fri, 25 May 2012 08:17:38 +0000 (11:17 +0300)]
device: Make scanning getter method public.

12 years agostorage: migrate 0.76-era device enabled / powered state
Grant Erickson [Mon, 21 May 2012 19:43:50 +0000 (12:43 -0700)]
storage: migrate 0.76-era device enabled / powered state

This patch ensures that [device_<type>] Powered=<true|false> device enabled
/ powered state migrates from 0.76-era versions of default.profile.

12 years agostorage: Remove default.profile when migration has been done
Patrik Flykt [Fri, 18 May 2012 08:44:08 +0000 (11:44 +0300)]
storage: Remove default.profile when migration has been done

Unconditionally remove default.profile without any migration if
the currently used global settings save file exists. The current
settings formats for global and service settings were introduced
in version 0.78.

12 years agostorage: Migrate services from obsolete default.profile
Patrik Flykt [Fri, 18 May 2012 08:44:07 +0000 (11:44 +0300)]
storage: Migrate services from obsolete default.profile

In order to remove the obsolete default.profile, migrate
services into the new setup with per-service directories.
If the service exists in the new format, it is not migrated.

12 years agostorage: Remove support for loading services from default.profile
Patrik Flykt [Fri, 18 May 2012 08:44:06 +0000 (11:44 +0300)]
storage: Remove support for loading services from default.profile

12 years agostorage: Return any errors when saving services and global config
Patrik Flykt [Fri, 18 May 2012 08:44:05 +0000 (11:44 +0300)]
storage: Return any errors when saving services and global config

12 years agoagent: Increase default timeout to 120 seconds
Marcel Holtmann [Wed, 23 May 2012 04:52:35 +0000 (06:52 +0200)]
agent: Increase default timeout to 120 seconds

The D-Bus default timeout is 25 seconds and that is clearly not enough time
to enter a passphrase. Increasing this to 120 seconds now.

12 years agoAUTHORS: Mention Elena's contributions
Marcel Holtmann [Wed, 23 May 2012 01:50:56 +0000 (03:50 +0200)]
AUTHORS: Mention Elena's contributions

12 years agoipconfig: Show FIXED configuration IP address info
Patrik Flykt [Mon, 21 May 2012 11:35:34 +0000 (14:35 +0300)]
ipconfig: Show FIXED configuration IP address info

Show FIXED configuration IP address info in service IPv4 and
IPv6 properties. If IP address is not available via
ipconfig->system, use the provider configured ones instead.

Fixes BMC#25084

12 years agoresolver: Send RS before RDNSS lifetime expires
Elena Tebesoi [Mon, 21 May 2012 12:49:42 +0000 (14:49 +0200)]
resolver: Send RS before RDNSS lifetime expires

Implemented feature from RFC 6106 section
'5.1. Recursive DNS Server Option':
"Lifetime      32-bit unsigned integer.
...
Hosts MAY send a Router Solicitation to ensure
the RDNSS information is fresh before the interval expires."

Host will send RS when a certain threshold of RDNSS lifetime is reached.
Values which can be adjusted:
- lifetime threshold - set to 80% from lifetime
- number of retries in case RA is not received - set to 0
- time between retries, in case RA is not received - set to 3 seconds

12 years agoresolver: Fixed cleanup of Resolver timer
Elena Tebesoi [Mon, 21 May 2012 15:48:20 +0000 (17:48 +0200)]
resolver: Fixed cleanup of Resolver timer

When connman is restarted, DNS servers are removed and added again
with function __connman_resolver_redo_servers(). While removing a
DNS entry, one should also remove the resolver timer registered for it.
Not doing so, causes the timeout handler resolver_expire_cb to fire
without being explicitly set.

12 years agodoc: Update service Domains property description
Patrik Flykt [Mon, 21 May 2012 13:01:36 +0000 (16:01 +0300)]
doc: Update service Domains property description

12 years agoservice: Fix Domains property
Patrik Flykt [Mon, 21 May 2012 13:01:35 +0000 (16:01 +0300)]
service: Fix Domains property

The service Domains property shows Domains.Configuration if set,
otherwise the domain name given by DHCP or provider.

Fixes BMC#25122

12 years agowispr: If redirected and TLS is not supported we fallback on browser request
Tomasz Bursztyka [Tue, 22 May 2012 10:17:38 +0000 (13:17 +0300)]
wispr: If redirected and TLS is not supported we fallback on browser request

12 years agogweb: Adding a function to know if TLS is supported or not
Tomasz Bursztyka [Tue, 22 May 2012 10:17:37 +0000 (13:17 +0300)]
gweb: Adding a function to know if TLS is supported or not

12 years agoagent: Verify that the reply contains a dictionary
Patrik Flykt [Tue, 22 May 2012 12:04:16 +0000 (15:04 +0300)]
agent: Verify that the reply contains a dictionary

12 years agogdbus: Fix incorrectly discarded signals
Mikel Astiz [Tue, 22 May 2012 14:58:18 +0000 (16:58 +0200)]
gdbus: Fix incorrectly discarded signals

Signals with no arguments were incorrectly filtered out due to the NULL
inequality check.

12 years agomanager: Use simpler argument names in ServicesChanged signal
Marcel Holtmann [Tue, 22 May 2012 04:13:27 +0000 (06:13 +0200)]
manager: Use simpler argument names in ServicesChanged signal

12 years agomanager: Fix wrong signature for SetProperty method
Marcel Holtmann [Tue, 22 May 2012 04:10:32 +0000 (06:10 +0200)]
manager: Fix wrong signature for SetProperty method

12 years agoREADME: Add description for --disable-wispr option
Marcel Holtmann [Tue, 22 May 2012 02:48:34 +0000 (04:48 +0200)]
README: Add description for --disable-wispr option

12 years agogweb: Add function to check for TLS support
Marcel Holtmann [Mon, 21 May 2012 20:29:00 +0000 (22:29 +0200)]
gweb: Add function to check for TLS support

12 years agobuild: Add option for disabling WISPr support
Marcel Holtmann [Mon, 21 May 2012 20:12:28 +0000 (22:12 +0200)]
build: Add option for disabling WISPr support

12 years agogdbus: do not check signature twice
Lucas De Marchi [Fri, 18 May 2012 20:30:13 +0000 (17:30 -0300)]
gdbus: do not check signature twice

Message signature is already checked in generic_message(), so there's no
need to check again in the callback.

12 years agogdbus: add Method.NoReply annotation in introspection
Lucas De Marchi [Fri, 18 May 2012 20:30:12 +0000 (17:30 -0300)]
gdbus: add Method.NoReply annotation in introspection

12 years agogdbus: add Deprecated annotation in introspection
Lucas De Marchi [Fri, 18 May 2012 20:30:11 +0000 (17:30 -0300)]
gdbus: add Deprecated annotation in introspection

12 years agogdbus: remove signature and reply from tables
Lucas De Marchi [Fri, 18 May 2012 20:30:10 +0000 (17:30 -0300)]
gdbus: remove signature and reply from tables

12 years agoDo not set signature and reply in GDBus tables
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:09 +0000 (17:30 -0300)]
Do not set signature and reply in GDBus tables

Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal.

12 years agogdbus: loop over args to check message signature
Lucas De Marchi [Fri, 18 May 2012 20:30:08 +0000 (17:30 -0300)]
gdbus: loop over args to check message signature

12 years agogdbus: use GDBusArgInfo to generate introspection
Lucas De Marchi [Fri, 18 May 2012 20:30:07 +0000 (17:30 -0300)]
gdbus: use GDBusArgInfo to generate introspection

By using GDBusArgInfo in methods and signals, the introspection
generation is much simpler and we can add each argument name.

12 years agoConvert GDBus methods and signals to use macro helpers
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:06 +0000 (17:30 -0300)]
Convert GDBus methods and signals to use macro helpers

With these macro helpers we can separate in/out arguments and use their
own vector.

12 years agogdbus: add and use helpers for table declarations
Lucas De Marchi [Fri, 18 May 2012 20:30:05 +0000 (17:30 -0300)]
gdbus: add and use helpers for table declarations

12 years agogdbus: add argument info to methods and signals
Lucas De Marchi [Fri, 18 May 2012 20:30:04 +0000 (17:30 -0300)]
gdbus: add argument info to methods and signals

12 years agoConstify GDBus signal tables
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:03 +0000 (17:30 -0300)]
Constify GDBus signal tables

12 years agoConstify GDBus method tables
Henrique Dante de Almeida [Fri, 18 May 2012 20:30:02 +0000 (17:30 -0300)]
Constify GDBus method tables

12 years agoconnection: Refactor VPN route setup
Jukka Rissanen [Wed, 9 May 2012 08:28:21 +0000 (11:28 +0300)]
connection: Refactor VPN route setup

12 years agogdbus: Constify introspection method table
Marcel Holtmann [Fri, 18 May 2012 02:56:27 +0000 (19:56 -0700)]
gdbus: Constify introspection method table

12 years agogdbus: do not call memset for terminating NUL
Lucas De Marchi [Thu, 17 May 2012 18:19:59 +0000 (15:19 -0300)]
gdbus: do not call memset for terminating NUL

12 years agogdbus: return if method signature is malformed
Lucas De Marchi [Thu, 17 May 2012 18:19:58 +0000 (15:19 -0300)]
gdbus: return if method signature is malformed

12 years agodoc: Clarify hidden WiFi network relations with Name+Type properties
Marcel Holtmann [Thu, 17 May 2012 18:21:07 +0000 (11:21 -0700)]
doc: Clarify hidden WiFi network relations with Name+Type properties

12 years agotechnology: Set deprecated flag for GetProperties method
Marcel Holtmann [Thu, 17 May 2012 18:08:37 +0000 (11:08 -0700)]
technology: Set deprecated flag for GetProperties method

12 years agoservice: Set deprecated flag for GetProperties method
Marcel Holtmann [Thu, 17 May 2012 18:08:00 +0000 (11:08 -0700)]
service: Set deprecated flag for GetProperties method

12 years agodoc: Mention deprecation of GetProperties methods
Marcel Holtmann [Thu, 17 May 2012 18:07:20 +0000 (11:07 -0700)]
doc: Mention deprecation of GetProperties methods

12 years agogsupplicant: Coding style clean-up
Grant Erickson [Tue, 15 May 2012 23:03:17 +0000 (16:03 -0700)]
gsupplicant: Coding style clean-up

This resolves several post-commit review coding style comments for
raw PSK support.

12 years agogsupplicant: Avoid critical errors
Jukka Rissanen [Tue, 15 May 2012 07:59:45 +0000 (10:59 +0300)]
gsupplicant: Avoid critical errors

wpa_supplicant sends error if wlan interface cannot be created.
Do not treat this error as critical because after calling
g_critical() the program logging will be disabled.

12 years agodoc: Update configuration format documentation
Patrik Flykt [Mon, 14 May 2012 12:20:45 +0000 (15:20 +0300)]
doc: Update configuration format documentation

Clarify that 'Name' is used only as a string representation of an
SSID and ignored if the entry contains an 'SSID' entry. Also clarify
that the identifier part is unique only within the .config file.
Add indentation.

12 years agoconfig: Reject invalid SSID hexadecimal entries
Patrik Flykt [Mon, 14 May 2012 12:20:44 +0000 (15:20 +0300)]
config: Reject invalid SSID hexadecimal entries

Reject provisioning .config file SSID entries that are not in
hexadecimal.

12 years agortnl: Domain search list was not handled according to RFC 6106
Jukka Rissanen [Mon, 14 May 2012 10:33:47 +0000 (13:33 +0300)]
rtnl: Domain search list was not handled according to RFC 6106

Domain search list option can exist in options without RDNSS option.
Note that the DNSSL netlink support is not yet in linux kernel
3.4-rc7, thus we will not yet get a DNSSL option in netlink RA
options.

12 years agoresolver: Do not try to update service if server is not set
Jukka Rissanen [Mon, 14 May 2012 10:33:46 +0000 (13:33 +0300)]
resolver: Do not try to update service if server is not set

12 years agoresolver: Allow update to domain if server is not set
Jukka Rissanen [Mon, 14 May 2012 10:33:45 +0000 (13:33 +0300)]
resolver: Allow update to domain if server is not set

12 years agoresolver: Follow connman coding style
Jukka Rissanen [Mon, 14 May 2012 10:33:44 +0000 (13:33 +0300)]
resolver: Follow connman coding style

12 years agogsupplicant: fix "raw" PSK support
Grant Erickson [Tue, 15 May 2012 08:51:21 +0000 (01:51 -0700)]
gsupplicant: fix "raw" PSK support

This fixes "raw" PSK support by first converting the "raw" PSK from
a 64-character hexadecimal string to 32-byte array before appending
it to the network dictionary.

12 years agodoc: SSID field is hexadecimal only, also document Name field
Patrik Flykt [Fri, 11 May 2012 09:40:16 +0000 (12:40 +0300)]
doc: SSID field is hexadecimal only, also document Name field

12 years agoREADME: Add comment on OpenVPN version to use
Daniel Wagner [Fri, 11 May 2012 09:35:49 +0000 (11:35 +0200)]
README: Add comment on OpenVPN version to use

12 years agoREADME: Move the VPN entry down
Daniel Wagner [Fri, 11 May 2012 09:35:48 +0000 (11:35 +0200)]
README: Move the VPN entry down

So it is under the "Configuration and options" section.

12 years agogdhcp: Make sure we have the message before accessing it
Jukka Rissanen [Thu, 10 May 2012 13:31:58 +0000 (16:31 +0300)]
gdhcp: Make sure we have the message before accessing it

12 years agogdhcp: Message type is required in DHCPv4
Jukka Rissanen [Thu, 10 May 2012 13:21:52 +0000 (16:21 +0300)]
gdhcp: Message type is required in DHCPv4

12 years agoAUTHORS: Mention Lucas De Marchi's contributions
Daniel Wagner [Thu, 10 May 2012 15:33:40 +0000 (17:33 +0200)]
AUTHORS: Mention Lucas De Marchi's contributions

12 years agodhcpv6: Check NULL pointer dereference
Jukka Rissanen [Thu, 10 May 2012 06:43:46 +0000 (09:43 +0300)]
dhcpv6: Check NULL pointer dereference

12 years agoAUTHORS: Mention Henrique Dante de Almeida's contributions
Patrik Flykt [Wed, 9 May 2012 14:20:14 +0000 (17:20 +0300)]
AUTHORS: Mention Henrique Dante de Almeida's contributions

12 years agodhcp: Use g_list_length() to calculate the list length
Jukka Rissanen [Wed, 9 May 2012 10:48:26 +0000 (13:48 +0300)]
dhcp: Use g_list_length() to calculate the list length

12 years agodhcpv6: Check NULL pointer dereference
Jukka Rissanen [Wed, 9 May 2012 10:48:25 +0000 (13:48 +0300)]
dhcpv6: Check NULL pointer dereference

12 years agodhcp: Check NULL pointer dereference
Jukka Rissanen [Wed, 9 May 2012 10:48:24 +0000 (13:48 +0300)]
dhcp: Check NULL pointer dereference

12 years agowispr: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:03 +0000 (16:21 -0300)]
wispr: Remove dead assignment

12 years agotools: Remove dead assignments in supplicant
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:02 +0000 (16:21 -0300)]
tools: Remove dead assignments in supplicant

12 years agotools: Remove dead assignment in supplicant
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:01 +0000 (16:21 -0300)]
tools: Remove dead assignment in supplicant

12 years agotools: Remove dead assignment in iptables-test
Henrique Dante de Almeida [Tue, 8 May 2012 19:21:00 +0000 (16:21 -0300)]
tools: Remove dead assignment in iptables-test

12 years agowispr: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:59 +0000 (16:20 -0300)]
wispr: Remove dead assignment

12 years agortnl: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:58 +0000 (16:20 -0300)]
rtnl: Remove dead assignment

12 years agoiptables: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:57 +0000 (16:20 -0300)]
iptables: Remove dead assignment

12 years agodnsproxy: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:56 +0000 (16:20 -0300)]
dnsproxy: Remove dead assignment

12 years agodnsproxy: Return error if initial send fails
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:55 +0000 (16:20 -0300)]
dnsproxy: Return error if initial send fails

12 years agovpn: Fix null pointer dereference
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:54 +0000 (16:20 -0300)]
vpn: Fix null pointer dereference

12 years agovpn: Fix null pointer dereference
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:53 +0000 (16:20 -0300)]
vpn: Fix null pointer dereference

12 years agoofono: Fix uninitialized variable
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:52 +0000 (16:20 -0300)]
ofono: Fix uninitialized variable

12 years agogsupplicant: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:51 +0000 (16:20 -0300)]
gsupplicant: Remove dead assignment

12 years agogdhcp: Remove dead assignment
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:50 +0000 (16:20 -0300)]
gdhcp: Remove dead assignment

12 years agogdhcp: Remove assignment that's never used
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:49 +0000 (16:20 -0300)]
gdhcp: Remove assignment that's never used

12 years agoofono: Fix uninitialized value
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:48 +0000 (16:20 -0300)]
ofono: Fix uninitialized value

12 years agowifi: Fix NULL ssid being passed to memcmp
Henrique Dante de Almeida [Tue, 8 May 2012 19:20:45 +0000 (16:20 -0300)]
wifi: Fix NULL ssid being passed to memcmp

12 years agooFono: Initialize prefix_length
Daniel Wagner [Tue, 8 May 2012 15:08:23 +0000 (17:08 +0200)]
oFono: Initialize prefix_length

We could end up calling connman_ipaddress_set_ipv6() withouth
prefix_lenght initialized.

Reported by hdante.

12 years agoRelease 1.0 1.0
Marcel Holtmann [Tue, 8 May 2012 15:13:18 +0000 (08:13 -0700)]
Release 1.0

12 years agoREADME: Fix minor spelling mistake
Marcel Holtmann [Tue, 8 May 2012 14:59:48 +0000 (07:59 -0700)]
README: Fix minor spelling mistake

12 years agoconnection: Fix possible NULL dereference
Adrien Bustany [Tue, 8 May 2012 14:26:07 +0000 (17:26 +0300)]
connection: Fix possible NULL dereference

12 years agoconnection: Fix host route to VPN server
Daniel Wagner [Mon, 7 May 2012 15:31:03 +0000 (17:31 +0200)]
connection: Fix host route to VPN server

The kernel will ignore host routes which are bogus.
In case of a PtP connection such as PPP for cellular the
gateway address should not be used.

12 years agoprovider: Fix network/netmask parsing and potential crash
Patrik Flykt [Tue, 8 May 2012 10:14:07 +0000 (13:14 +0300)]
provider: Fix network/netmask parsing and potential crash

12 years agogsupplicant: Use the right dbus helper when adding a fixed array in a dict
Tomasz Bursztyka [Tue, 8 May 2012 08:23:03 +0000 (11:23 +0300)]
gsupplicant: Use the right dbus helper when adding a fixed array in a dict

Fixes BMC#25120

12 years agoofono: Check for CM attached before registering network
Daniel Wagner [Mon, 7 May 2012 13:22:59 +0000 (15:22 +0200)]
ofono: Check for CM attached before registering network

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

12 years agowifi: Set disconnecting flag to a relevant value when disconnected
Tomasz Bursztyka [Mon, 7 May 2012 13:48:22 +0000 (16:48 +0300)]
wifi: Set disconnecting flag to a relevant value when disconnected

12 years agogsupplicant: Fixing a possible memory leak when disconnecting
Tomasz Bursztyka [Mon, 7 May 2012 07:21:26 +0000 (10:21 +0300)]
gsupplicant: Fixing a possible memory leak when disconnecting

12 years agoRelease 0.85 0.85
Marcel Holtmann [Fri, 4 May 2012 13:57:20 +0000 (15:57 +0200)]
Release 0.85

12 years agobuild: Enable vpnc by default for developer builds
Marcel Holtmann [Fri, 4 May 2012 13:26:50 +0000 (15:26 +0200)]
build: Enable vpnc by default for developer builds