Marcel Holtmann [Mon, 23 Apr 2012 15:21:07 +0000 (17:21 +0200)]
Release 0.81
Marcel Holtmann [Mon, 23 Apr 2012 15:03:35 +0000 (17:03 +0200)]
doc: Update README to actually reflect reality
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:21 +0000 (11:22 +0300)]
device: Removing emulated background scanning
Such "background" scanning was in use only for wifi devices. Such feature
is now fully moved and better supported in connman's wifi plugin.
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:20 +0000 (11:22 +0300)]
device: Remove the scheduled scan method
wifi was the only one using it, and this is replaced by the combination of
bgscan and autoscan.
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:19 +0000 (11:22 +0300)]
wifi: Remove old background scanning technique call
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:18 +0000 (11:22 +0300)]
wifi: Specify bgscan parameters according to main.conf settings
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:17 +0000 (11:22 +0300)]
wifi: Setup autoscan according to the main.conf settings
Tomasz Bursztyka [Mon, 23 Apr 2012 08:22:16 +0000 (11:22 +0300)]
wifi: Adding support for autoscan emulation
Tomasz Bursztyka [Fri, 20 Apr 2012 12:18:36 +0000 (15:18 +0300)]
wifi: Decide to use WPS PBC if the AP is already advertizing for it
Tomasz Bursztyka [Fri, 20 Apr 2012 12:18:35 +0000 (15:18 +0300)]
gsupplicant: Add WPS specific capabilities handling for network
Tomasz Bursztyka [Fri, 20 Apr 2012 12:18:34 +0000 (15:18 +0300)]
gsupplicant: Add WPS specific capabilities parsing for BSS
Marcel Holtmann [Sat, 21 Apr 2012 20:04:29 +0000 (22:04 +0200)]
build: Remove useless alg-test example program
Marcel Holtmann [Sat, 21 Apr 2012 20:02:39 +0000 (22:02 +0200)]
build: Build client and testing tools by default
Marcel Holtmann [Sat, 21 Apr 2012 19:40:20 +0000 (21:40 +0200)]
build: Allow NM and PolicyKit plugins only as builtins
Marcel Holtmann [Sat, 21 Apr 2012 11:53:01 +0000 (13:53 +0200)]
build: Remove duplicate test for wpa_supplicant
Marcel Holtmann [Sat, 21 Apr 2012 11:44:30 +0000 (13:44 +0200)]
build: Always enable essential plugins by default
Marcel Holtmann [Sat, 21 Apr 2012 11:18:32 +0000 (13:18 +0200)]
build: Remove useless fake plugin
Lucas De Marchi [Fri, 20 Apr 2012 16:02:49 +0000 (13:02 -0300)]
build: add unit tests to .gitignore
Lucas De Marchi [Fri, 20 Apr 2012 16:02:48 +0000 (13:02 -0300)]
gweb: don't use deprecated gnutls_session typedef
According to gnutls/compat.h, gnutls_session typedef was deprecated
since 2.x in favor of gnutls_session_t. Use the new typedef then.
Lucas De Marchi [Fri, 20 Apr 2012 16:02:47 +0000 (13:02 -0300)]
gdhcp: fix strict-aliasing warning
The previous way was giving the following warning with gcc 4.7:
CC gdhcp/common.o
gdhcp/common.c: In function 'dhcp_add_simple_option':
gdhcp/common.c:275:38: error: dereferencing type-punned pointer will
break strict-aliasing rules [-Werror=strict-aliasing
Change it slightly so not to give this warning.
Daniel Wagner [Fri, 20 Apr 2012 14:35:48 +0000 (16:35 +0200)]
technology: Fix indention
Jussi Kukkonen [Fri, 20 Apr 2012 13:54:21 +0000 (15:54 +0200)]
ofono: Only register network when APN is set
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
Daniel Wagner [Fri, 20 Apr 2012 13:14:56 +0000 (15:14 +0200)]
ofono: Fix network_driver name
Patrik Flykt [Fri, 20 Apr 2012 13:07:33 +0000 (16:07 +0300)]
service: Notify timeserver removal for previous default service
Patrik Flykt [Fri, 20 Apr 2012 13:07:32 +0000 (16:07 +0300)]
timeserver: Notify service of changed timeservers
Patrik Flykt [Fri, 20 Apr 2012 13:07:31 +0000 (16:07 +0300)]
service: Implement service Timeservers property
Fixes BMC#25054.
Patrik Flykt [Fri, 20 Apr 2012 13:07:30 +0000 (16:07 +0300)]
timeserver: Refactor __connman_timeserver_sync()
Factor out code that creates the timeserver list in
__connman_timeserver_sync().
Patrik Flykt [Fri, 20 Apr 2012 13:07:29 +0000 (16:07 +0300)]
configure.ac: Require glib >= 2.28
Jukka Rissanen [Fri, 20 Apr 2012 11:38:56 +0000 (14:38 +0300)]
service: Save new service data only after successful connect
The data for new service was saved into disk (with Favorite=false)
even if the first connection failed. This is now changed and
service data is only saved if user has been able to connect to a
service at least once.
Patrik Flykt [Fri, 20 Apr 2012 11:54:27 +0000 (14:54 +0300)]
main: Mark end of array with NULL in order not to crash
Jukka Rissanen [Fri, 20 Apr 2012 11:28:30 +0000 (14:28 +0300)]
agent: Memory leak in passphrase reply
The pending call was not unreffed.
Jukka Rissanen [Fri, 20 Apr 2012 10:57:03 +0000 (13:57 +0300)]
test: Cannot set both name and passphrase
simple-agent could not be used to return both the Name and Passphrase
fields for hidden psk networks.
Fixes BMC#25058
Patrik Flykt [Fri, 20 Apr 2012 10:47:18 +0000 (13:47 +0300)]
main: Set default values if main.conf is not found
Jukka Rissanen [Thu, 19 Apr 2012 12:29:53 +0000 (15:29 +0300)]
service: Changing default service was not correctly checked
Let the default_changed() function check whether the default service is
really changed as it is doing it correctly every time.
The extra check in the __connman_service_indicate_default() function is
causing problems if the user is moving services around. Then we might be
using the old DNS service data because DNS code did not get information
that default service was changed.
Fixes BMC#25027
Tomasz Bursztyka [Thu, 19 Apr 2012 09:35:12 +0000 (12:35 +0300)]
service: fix glib critical messages about g_sequence_sort_changed
This patch fixes this:
GLib-CRITICAL **: g_sequence_sort_changed: assertion `!is_end (iter)' failed
Daniel Wagner [Thu, 19 Apr 2012 09:58:23 +0000 (11:58 +0200)]
notifier: Change notifer_count_online() to notifier_is_online()
evaluate_notifer_state() is not interested in the number of online
services (which is btw always 0 or 1) just if there is one.
Daniel Wagner [Thu, 19 Apr 2012 09:58:22 +0000 (11:58 +0200)]
notifier: Change __connman_notifier_count_connected() to *_is_connected()
No caller is interested in the number of connected services, only
if there is one or more or none.
Jukka Rissanen [Wed, 18 Apr 2012 14:57:21 +0000 (17:57 +0300)]
pacrunner: Memory leak in dbus container
Valgrind reported memory leak here. The dbus message container
must be not left open because it has allocated resources so we
close the container before returning.
Patrik Flykt [Thu, 19 Apr 2012 08:00:08 +0000 (11:00 +0300)]
service: Send Timeservers.Configuration property changed
Fixes BMC#25055.
Marcel Holtmann [Tue, 17 Apr 2012 13:47:57 +0000 (15:47 +0200)]
Release 0.80
Daniel Wagner [Tue, 17 Apr 2012 13:29:54 +0000 (15:29 +0200)]
notifier: Distinguish between different states
Instead of only having "offline" and "online" states, we support
now having "offline", "idle", "ready" and "online" as on the
Manager.State documenation update required.
Daniel Wagner [Tue, 17 Apr 2012 12:59:01 +0000 (14:59 +0200)]
service: Update notifier on ONLINE state
Daniel Wagner [Tue, 17 Apr 2012 12:58:36 +0000 (14:58 +0200)]
notifier: Add __connman_notifier_online()
For indicating the we entered the ONLINE state.
Daniel Wagner [Tue, 17 Apr 2012 12:57:24 +0000 (14:57 +0200)]
notifier: Add old state to __connman_notifier_disconnect()
The old state helps to distinguish between the transissionts
from CONNECTED -> DISCONNECTED or ONLINE -> DISCONNECTED.
Marcel Holtmann [Tue, 17 Apr 2012 13:23:39 +0000 (15:23 +0200)]
doc: Add missing property for service timeservers
Marcel Holtmann [Tue, 17 Apr 2012 12:48:55 +0000 (14:48 +0200)]
doc: Mention the special offline handling for state property
Marcel Holtmann [Mon, 16 Apr 2012 09:31:32 +0000 (11:31 +0200)]
doc: Update global state property details
Marcel Holtmann [Tue, 17 Apr 2012 12:35:39 +0000 (14:35 +0200)]
notifier: Remove extra empty line
Marcel Holtmann [Tue, 17 Apr 2012 12:31:35 +0000 (14:31 +0200)]
log: Remove D-Bus iterators for debug properties
Marcel Holtmann [Tue, 17 Apr 2012 12:30:55 +0000 (14:30 +0200)]
manager: Remove experimental debug properties
Marcel Holtmann [Tue, 17 Apr 2012 12:28:39 +0000 (14:28 +0200)]
test: Remove handling of no longer existing properties
Marcel Holtmann [Tue, 17 Apr 2012 12:25:18 +0000 (14:25 +0200)]
manager: Make two global variables static
Daniel Wagner [Tue, 17 Apr 2012 11:31:49 +0000 (13:31 +0200)]
network: Remove unused function
Tomasz Bursztyka [Tue, 17 Apr 2012 10:54:24 +0000 (13:54 +0300)]
device: use g_hash_table_replace instead of insert function
Tomasz Bursztyka [Tue, 17 Apr 2012 10:54:23 +0000 (13:54 +0300)]
nat: use g_hash_table_replace instead of insert function
Tomasz Bursztyka [Tue, 17 Apr 2012 10:54:22 +0000 (13:54 +0300)]
task: use g_hash_table_replace instead of insert function
Tomasz Bursztyka [Tue, 17 Apr 2012 10:54:21 +0000 (13:54 +0300)]
vpn: use g_hash_table_replace instead of insert function
Tomasz Bursztyka [Tue, 17 Apr 2012 10:54:20 +0000 (13:54 +0300)]
bluetooth: use g_hash_table_replace instead of insert function
Jukka Rissanen [Tue, 17 Apr 2012 09:32:22 +0000 (12:32 +0300)]
service: Default service notifier is called too many times
The default service notifier is invoked even when the default
service has not been changed. This causes unnecessary dbus
signal traffic.
Fixes BMC#25030
Tomasz Bursztyka [Tue, 17 Apr 2012 09:27:41 +0000 (12:27 +0300)]
service: Use g_hash_table_replace instead of insert function
Tomasz Bursztyka [Tue, 17 Apr 2012 08:18:02 +0000 (11:18 +0300)]
service: Fix service_send_changed abort signal while cleaning up
Tomasz Bursztyka [Tue, 17 Apr 2012 07:10:07 +0000 (10:10 +0300)]
service: Schedule auto connect procedure to be ran on its own
Tomasz Bursztyka [Mon, 16 Apr 2012 13:21:38 +0000 (16:21 +0300)]
service: Do not autoconnect if service is getting removed
While unplugging ethernet cable,
__connman_service_remove_from_network() is called since
related network is getting cleaned up. Therefore ethernet
service goes from online/ready to disconnected, and end
to idle state. However, at that state auto_connect() is
called (even if this service is "planned" to disappear
due to network getting cleaned up) adn we end up with
ethernet network not disappearing, nor its related
service. We only need to set the service as "ignored", so
auto_connect will ignore that particular service.
Julien Massot [Fri, 13 Apr 2012 13:09:03 +0000 (13:09 +0000)]
supplicant: Remove trailing whitespace
Julien Massot [Fri, 13 Apr 2012 15:16:35 +0000 (15:16 +0000)]
service: Move setting of WPS input from agent to service.
Julien Massot [Fri, 13 Apr 2012 15:16:34 +0000 (15:16 +0000)]
service: Add function to check the WPS PIN validity
Julien Massot [Fri, 13 Apr 2012 15:16:33 +0000 (15:16 +0000)]
service: request_input_cb handle wps setting
Julien Massot [Fri, 13 Apr 2012 15:16:32 +0000 (15:16 +0000)]
network: Avoid connection to a network with invalid key
Julien Massot [Fri, 13 Apr 2012 15:16:31 +0000 (15:16 +0000)]
service: Check the passphrase validity
A WPA passphrase is 8..63 char length.
A WPA raw key is always 64 hex digit.
A Wep passphrase is either 5 or 13 characters
A WEP key is 10 or 26 hex digit.
Julien Massot [Fri, 13 Apr 2012 15:16:30 +0000 (15:16 +0000)]
gsupplicant: Interpret "invalid message format" as invalid-key error
If gsupplicant sends a malformed passphrase,
wpa_supplicant return an error "invalid message format",
parsing this error avoids future usage of this passphrase.
Patrik Flykt [Thu, 12 Apr 2012 11:45:05 +0000 (14:45 +0300)]
main.conf: Document main.conf options
Jukka Rissanen [Wed, 4 Apr 2012 08:38:40 +0000 (11:38 +0300)]
test: Remove set-address script
The script is quite useless because it changes the IP address
settings of all found services. The IP settings will be the same
for every service which is probably not what the user wants.
The set-ipv4-method and set-ipv6-method scripts can be used by
the user instead of set-address because those two scripts
will only change settings of one service.
Jukka Rissanen [Thu, 12 Apr 2012 11:30:50 +0000 (14:30 +0300)]
config: Warn user if no configuration is found
This is useful so that user gets information that he needs to
fix the config file.
Marcel Holtmann [Mon, 16 Apr 2012 15:57:08 +0000 (17:57 +0200)]
gdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check
Marcel Holtmann [Mon, 16 Apr 2012 15:56:45 +0000 (17:56 +0200)]
build: Require D-Bus 1.4 or later
Patrik Flykt [Thu, 12 Apr 2012 09:54:32 +0000 (12:54 +0300)]
service: Check for settings list being non-NULL
Patrik Flykt [Wed, 11 Apr 2012 13:29:03 +0000 (16:29 +0300)]
TODO: Mark FallbackNameservers and FallbackTimeservers done
Patrik Flykt [Wed, 11 Apr 2012 13:29:02 +0000 (16:29 +0300)]
resolver: Append fallback nameservers
Append fallback nameservers, if any. Remove functions for adding
removing public nameservers since they are not used anymore.
Patrik Flykt [Wed, 11 Apr 2012 13:29:01 +0000 (16:29 +0300)]
main: Implement 'FallbackNameservers' main.conf option
Implement 'FallbackNameservers' main.conf configuration file
option. While parsing the list of nameservers, use only the ones
in numeric format.
Patrik Flykt [Wed, 11 Apr 2012 13:29:00 +0000 (16:29 +0300)]
google: Remove google nameserver plugin
Jukka Rissanen [Tue, 10 Apr 2012 07:28:20 +0000 (10:28 +0300)]
timeserver: Nameserver array was not freed
Jukka Rissanen [Tue, 10 Apr 2012 07:28:18 +0000 (10:28 +0300)]
timeserver: Timeserver array was not freed
Jukka Rissanen [Tue, 3 Apr 2012 11:07:24 +0000 (14:07 +0300)]
provider: Disconnect VPN when phy service is disconnected
If the VPN is connected and the underlaying service is
disconnected, then we must also disconnect the VPN if it
is still connected.
Patrik Flykt [Tue, 3 Apr 2012 09:13:36 +0000 (12:13 +0300)]
service: Schedule ServicesChanged signal to be sent
Whenever the sort order is updated, schedule ServicesChanged
signal to be sent.
Patrik Flykt [Tue, 3 Apr 2012 09:13:35 +0000 (12:13 +0300)]
service: Add ServicesChanged signal
Send ServicesChanged signal instead of consecutive ServicesAdded and
ServicesRemoved signals.
Marcel Holtmann [Fri, 30 Mar 2012 05:24:33 +0000 (07:24 +0200)]
doc: Remove ServicesAddedd and ServiceRemoved signals
Marcel Holtmann [Fri, 30 Mar 2012 05:24:32 +0000 (07:24 +0200)]
doc: Add ServicesChanged signal to manager API
Julien Massot [Wed, 4 Apr 2012 17:08:29 +0000 (17:08 +0000)]
test: Remove provision service
This script have to be removed since the provision API no longer exist.
Patrik Flykt [Wed, 11 Apr 2012 13:41:19 +0000 (16:41 +0300)]
Makefile: Remove test/provision-service from Makefile.am
Patrik Flykt [Thu, 5 Apr 2012 19:38:46 +0000 (22:38 +0300)]
TODO: Mark PreferredTechnologies (PriorityTechnologies) done
Patrik Flykt [Thu, 5 Apr 2012 19:38:45 +0000 (22:38 +0300)]
service: Update ordering regarding connected preferred service
When a new service goes online, run the service ordering check.
If the return value is -EAGAIN, neither service was preferred
and a new autoconnection attempt is done to find a preferred
service.
When a new service goes to ready state, run the service
ordering check similarly as with the online state. Since online
check will be run next, only re-attempt autoconnection when the
online check is known to have failed and the service will
stay at ready state.
Patrik Flykt [Thu, 5 Apr 2012 19:38:44 +0000 (22:38 +0300)]
service: Function for checking and updating service ordering
Update the service order checking with a lookup of preferred
technologies. If the new service is found to be preferred,
switch the order of the current default and the new service.
Do the same checks for the default service as currently in
online state default service checking; if the current default
service stays as default, return -EALREADY.
When neither service was found to be preferred, return -EAGAIN.
Patrik Flykt [Thu, 5 Apr 2012 19:38:43 +0000 (22:38 +0300)]
service: Try preferred technologies first, then normal autoconnect
When autoconnecting, try first with the list of preferred
technologies. If none can be connected or there are no preferred
technologies, do a normal autoconnect.
When autoconnecting preferred services, skip any non-favorite and
online ones in the list instead of ending the autoconnect procedure.
Patrik Flykt [Thu, 5 Apr 2012 19:38:42 +0000 (22:38 +0300)]
service: Factor out code for switching two services
Patrik Flykt [Thu, 5 Apr 2012 19:38:41 +0000 (22:38 +0300)]
service: Create preferred technology list
Look up services from the service list according to their types
using the entries in the 'PreferredTechnologies' string array.
Return the newly allocated service sequence to the caller.
Patrik Flykt [Thu, 5 Apr 2012 19:38:40 +0000 (22:38 +0300)]
main: Add 'PreferredTechnologies' configuration file option
The main.conf 'PreferredTechnologies' is a list of service
type strings but converted to a list of service type enums.
Thus the configuration option is accessible via the function
connman_setting_get_uint_list().
Patrik Flykt [Thu, 5 Apr 2012 19:38:39 +0000 (22:38 +0300)]
main: Free g_key_file config immediately after use
Patrik Flykt [Thu, 5 Apr 2012 19:38:35 +0000 (22:38 +0300)]
TODO: Mark DefaultAutoConnectTechnologies done
Patrik Flykt [Thu, 5 Apr 2012 19:38:34 +0000 (22:38 +0300)]
service: Set autoconnect according to configured preferences
Patrik Flykt [Thu, 5 Apr 2012 19:38:33 +0000 (22:38 +0300)]
main: Add 'DefaultAutoConnectTechnologies' configuration option
The main.conf 'DefaultAutoConnectTechnologies' is a list of
service type strings. It is converted to a list of service type
enums, and thus the configuration option is accessible via the
function connman_setting_get_uint_list().
If this option is not specified, the default technologies to
autoconnect are wifi, ethernet and cellular just like before.