platform/upstream/connman.git
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

12 years agotest: Show autoconnect and state in services list
Jukka Rissanen [Fri, 4 May 2012 13:06:50 +0000 (16:06 +0300)]
test: Show autoconnect and state in services list

Show the autoconnect "A" and state "R"eady or "O"nline
indicators in the services list.

12 years agoagent: Memory leak in error reply
Jukka Rissanen [Fri, 4 May 2012 12:49:44 +0000 (15:49 +0300)]
agent: Memory leak in error reply

The pending call was not unreffed.

12 years agonotifier: Evaluate offline state after 'online' and 'ready'
Patrik Flykt [Wed, 2 May 2012 11:54:42 +0000 (14:54 +0300)]
notifier: Evaluate offline state after 'online' and 'ready'

12 years agowifi: Automatically scan hidden wifi services
Jukka Rissanen [Fri, 4 May 2012 12:24:37 +0000 (15:24 +0300)]
wifi: Automatically scan hidden wifi services

This enables service to autoconnect to hidden wifi service.

Fixes BMC#11860

12 years agowifi: Refactor code
Jukka Rissanen [Fri, 4 May 2012 12:24:36 +0000 (15:24 +0300)]
wifi: Refactor code

Move add_scan_param() to start of the file for the next patch.

12 years agonetwork: Mark service as hidden after successfull connect
Jukka Rissanen [Fri, 4 May 2012 12:24:35 +0000 (15:24 +0300)]
network: Mark service as hidden after successfull connect

We must remember wifi service hidden status so that we can
do active scan of its SSID and then autoconnect to it.

12 years agoservice: Save/load service hidden status
Jukka Rissanen [Fri, 4 May 2012 12:24:34 +0000 (15:24 +0300)]
service: Save/load service hidden status

12 years agoservice: Add flag that tells if the service is hidden or not
Jukka Rissanen [Fri, 4 May 2012 12:24:33 +0000 (15:24 +0300)]
service: Add flag that tells if the service is hidden or not

12 years agowifi: Allow max number of scan entries
Jukka Rissanen [Fri, 4 May 2012 12:24:32 +0000 (15:24 +0300)]
wifi: Allow max number of scan entries

Do no limit the scan entries to 4 (G_SUPPLICANT_MAX_FAST_SCAN)
but use the limit given by the driver. The limit is given by wpa_s.
If the supplicant does not return the limit, then use 4 as a max
value.

12 years agodhcpv6: Remove timer properly in error cases
Jukka Rissanen [Fri, 4 May 2012 10:32:09 +0000 (13:32 +0300)]
dhcpv6: Remove timer properly in error cases

Needed so that we do not access stale pointers from
timer handler.

12 years agodhcpv6: Refactor timer clearing
Jukka Rissanen [Fri, 4 May 2012 10:32:08 +0000 (13:32 +0300)]
dhcpv6: Refactor timer clearing

12 years agodhcpv6: Possible memory leak
Jukka Rissanen [Fri, 4 May 2012 10:32:07 +0000 (13:32 +0300)]
dhcpv6: Possible memory leak

12 years agovpnc: Save only a subset of vpnc options
Patrik Flykt [Wed, 2 May 2012 09:09:51 +0000 (12:09 +0300)]
vpnc: Save only a subset of vpnc options

Add a new field in the structure indicating whether the option
is saved.

12 years agowispr: Add check for status 400
Patrik Flykt [Thu, 3 May 2012 13:55:50 +0000 (16:55 +0300)]
wispr: Add check for status 400

12 years agogdhcp: Add option and length checks
Patrik Flykt [Thu, 3 May 2012 13:28:41 +0000 (16:28 +0300)]
gdhcp: Add option and length checks

12 years agogdhcp: Fix packet length checking
Patrik Flykt [Thu, 3 May 2012 13:28:40 +0000 (16:28 +0300)]
gdhcp: Fix packet length checking

Fix packet length checking where payload length could have been zero.
Also check that we don't set the option pointer beyond the end of the
packet payload.

12 years agoloopback: Check hostname/domainname validity
Jukka Rissanen [Thu, 3 May 2012 13:15:08 +0000 (16:15 +0300)]
loopback: Check hostname/domainname validity

12 years agoinet: Add function that checks if the hostname is valid
Jukka Rissanen [Thu, 3 May 2012 13:15:07 +0000 (16:15 +0300)]
inet: Add function that checks if the hostname is valid

12 years agoinet: Make sure that we only accept netlink messages from kernel
Jukka Rissanen [Thu, 3 May 2012 12:27:23 +0000 (15:27 +0300)]
inet: Make sure that we only accept netlink messages from kernel

12 years agortnl: Make sure that we only accept netlink messages from kernel
Jukka Rissanen [Thu, 3 May 2012 12:27:22 +0000 (15:27 +0300)]
rtnl: Make sure that we only accept netlink messages from kernel

12 years agoservice: Do not stay on failure state when it is due to wrong user input
Tomasz Bursztyka [Thu, 3 May 2012 09:55:19 +0000 (12:55 +0300)]
service: Do not stay on failure state when it is due to wrong user input

12 years agonetwork: Set service as a userconnect when connecting a hidden network
Tomasz Bursztyka [Thu, 3 May 2012 09:55:18 +0000 (12:55 +0300)]
network: Set service as a userconnect when connecting a hidden network

This fixes when connecting to an hidden services fails, so the user will be
asked to retry through agent api.

12 years agoservice: Adding a function to set userconnect value
Tomasz Bursztyka [Thu, 3 May 2012 09:55:17 +0000 (12:55 +0300)]
service: Adding a function to set userconnect value

This is necessary for further fixing while connecting to an hidden network.

12 years agoservice: Remove useless scan requests
Tomasz Bursztyka [Wed, 2 May 2012 13:46:14 +0000 (16:46 +0300)]
service: Remove useless scan requests

12 years agodoc: Adding description of a new possible error for RequestInput method
Tomasz Bursztyka [Wed, 2 May 2012 13:46:13 +0000 (16:46 +0300)]
doc: Adding description of a new possible error for RequestInput method

12 years agoservice: Handle nicely request input error
Tomasz Bursztyka [Wed, 2 May 2012 13:46:12 +0000 (16:46 +0300)]
service: Handle nicely request input error

12 years agotest: Handling properly Canceled or LaunchBrowser errors
Tomasz Bursztyka [Wed, 2 May 2012 13:46:11 +0000 (16:46 +0300)]
test: Handling properly Canceled or LaunchBrowser errors

12 years agowispr: Managing the case when user wants to login through the browser himself
Tomasz Bursztyka [Wed, 2 May 2012 13:46:10 +0000 (16:46 +0300)]
wispr: Managing the case when user wants to login through the browser himself

12 years agoagent: Adding a parameter to give the error name to browser callback
Tomasz Bursztyka [Wed, 2 May 2012 13:46:09 +0000 (16:46 +0300)]
agent: Adding a parameter to give the error name to browser callback

12 years agoagent: Adding a parameter to give the error name to authentication callback
Tomasz Bursztyka [Thu, 3 May 2012 12:15:57 +0000 (15:15 +0300)]
agent: Adding a parameter to give the error name to authentication callback

12 years agowispr: Adding some useful debug outputs
Tomasz Bursztyka [Wed, 2 May 2012 13:46:07 +0000 (16:46 +0300)]
wispr: Adding some useful debug outputs

12 years agowispr: Set gweb debug at the right place
Tomasz Bursztyka [Wed, 2 May 2012 13:46:06 +0000 (16:46 +0300)]
wispr: Set gweb debug at the right place

12 years agowispr: Use g_strdup() instead of strdup()
Jukka Rissanen [Wed, 2 May 2012 10:13:06 +0000 (13:13 +0300)]
wispr: Use g_strdup() instead of strdup()

Valgrind reports following error if strdup() is used here:

==12572== Invalid read of size 4
==12572==    at 0x429113B: ??? (in /lib/libc-2.11.90.so)
==12572==    by 0x80A8154: wispr_route_request (wispr.c:471)
==12572==    by 0x805CA4F: resolv_result (gweb.c:449)
==12572==    by 0x805DD4B: sort_and_return_results (gresolv.c:494)
==12572==    by 0x805E285: received_udp_data (gresolv.c:705)
==12572==    by 0x40AD8E6: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x4078AFA: g_main_context_dispatch (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x407911E: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x40796BC: g_main_loop_run (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x807400F: main (main.c:508)
==12572==  Address 0x55f406c is 20 bytes inside a block of size 22 alloc'd
==12572==    at 0x4029AE9: malloc (vg_replace_malloc.c:236)
==12572==    by 0x40B1D6C: g_malloc (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x40B4C25: g_strdup (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x805CA23: resolv_result (gweb.c:1222)
==12572==    by 0x805DD4B: sort_and_return_results (gresolv.c:494)
==12572==    by 0x805E285: received_udp_data (gresolv.c:705)
==12572==    by 0x40AD8E6: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x4078AFA: g_main_context_dispatch (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x407911E: ??? (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x40796BC: g_main_loop_run (in /lib/libglib-2.0.so.0.2800.6)
==12572==    by 0x807400F: main (main.c:508)
==12572==

If g_strdup() is used then no error is printed.
This error does not make much sense but anyway use g_strdup()
like in other parts of this file.

12 years agowispr: Possible memory leak in error case
Jukka Rissanen [Wed, 2 May 2012 09:56:51 +0000 (12:56 +0300)]
wispr: Possible memory leak in error case

12 years agowifi: Plugin internal variable was not static
Jukka Rissanen [Wed, 2 May 2012 09:56:19 +0000 (12:56 +0300)]
wifi: Plugin internal variable was not static

12 years agoconnection: Set host route to VPN server
Jukka Rissanen [Fri, 27 Apr 2012 10:55:46 +0000 (13:55 +0300)]
connection: Set host route to VPN server

This is needed so that we can access hosts behind the VPN.
The route might already be setup if VPN server is the same
as nameserver or similar.

12 years agotest: Also monitor technology changes
Marcel Holtmann [Tue, 1 May 2012 08:16:52 +0000 (10:16 +0200)]
test: Also monitor technology changes

12 years agoservice: Use helper function to add timeservers only once
Patrik Flykt [Mon, 30 Apr 2012 11:13:01 +0000 (14:13 +0300)]
service: Use helper function to add timeservers only once

12 years agoclock: Use helper function to add timeservers only once
Patrik Flykt [Mon, 30 Apr 2012 11:13:00 +0000 (14:13 +0300)]
clock: Use helper function to add timeservers only once

12 years agotimeserver: Use helper function to add timeservers only once
Patrik Flykt [Mon, 30 Apr 2012 11:12:59 +0000 (14:12 +0300)]
timeserver: Use helper function to add timeservers only once

12 years agotimeserver: Helper function for adding timeservers once to a list
Patrik Flykt [Mon, 30 Apr 2012 11:12:58 +0000 (14:12 +0300)]
timeserver: Helper function for adding timeservers once to a list

12 years agoREADME: Fix version number typo
Patrik Flykt [Mon, 30 Apr 2012 11:12:40 +0000 (14:12 +0300)]
README: Fix version number typo

12 years agonotifier: Return offline as global state if offline mode is enabled
Marcel Holtmann [Sun, 29 Apr 2012 23:35:23 +0000 (01:35 +0200)]
notifier: Return offline as global state if offline mode is enabled

12 years agotest: Update service monitoring script
Marcel Holtmann [Sun, 29 Apr 2012 23:31:24 +0000 (01:31 +0200)]
test: Update service monitoring script

12 years agotest: Remove script to monitor manager
Marcel Holtmann [Sun, 29 Apr 2012 23:27:43 +0000 (01:27 +0200)]
test: Remove script to monitor manager

12 years agodoc: Fix tabs vs spaces for service and technology documentation
Marcel Holtmann [Sun, 29 Apr 2012 23:17:11 +0000 (01:17 +0200)]
doc: Fix tabs vs spaces for service and technology documentation

12 years agodoc: Fix tabs vs spaces for agent documentation
Marcel Holtmann [Sun, 29 Apr 2012 23:13:52 +0000 (01:13 +0200)]
doc: Fix tabs vs spaces for agent documentation

12 years agoRelease 0.84 0.84
Marcel Holtmann [Sun, 29 Apr 2012 13:13:21 +0000 (15:13 +0200)]
Release 0.84

12 years agobuild: Remove dependency on libcap-ng
Marcel Holtmann [Sun, 29 Apr 2012 10:59:18 +0000 (12:59 +0200)]
build: Remove dependency on libcap-ng

12 years agotest: Update service monitoring script
Marcel Holtmann [Sat, 28 Apr 2012 23:30:25 +0000 (01:30 +0200)]
test: Update service monitoring script

12 years agotest: Add more pretty print for service monitoring
Marcel Holtmann [Sat, 28 Apr 2012 23:15:41 +0000 (01:15 +0200)]
test: Add more pretty print for service monitoring

12 years agotest: Add pretty printing for timeservers
Marcel Holtmann [Sat, 28 Apr 2012 23:12:44 +0000 (01:12 +0200)]
test: Add pretty printing for timeservers

12 years agonotifier: Remove DefaultTechnology signal
Marcel Holtmann [Sat, 28 Apr 2012 23:06:19 +0000 (01:06 +0200)]
notifier: Remove DefaultTechnology signal

12 years agoREADME: Mention wpa_supplicant version details
Marcel Holtmann [Sat, 28 Apr 2012 23:03:52 +0000 (01:03 +0200)]
README: Mention wpa_supplicant version details

12 years agoplugins: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:59:56 +0000 (00:59 +0200)]
plugins: Update copyright information

12 years agocore: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:59:40 +0000 (00:59 +0200)]
core: Update copyright information

12 years agotools: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:58:58 +0000 (00:58 +0200)]
tools: Update copyright information

12 years agogsupplicant: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:58:34 +0000 (00:58 +0200)]
gsupplicant: Update copyright information

12 years agogdhcp: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:58:22 +0000 (00:58 +0200)]
gdhcp: Update copyright information

12 years agogweb: Update copyright information
Marcel Holtmann [Sat, 28 Apr 2012 22:57:38 +0000 (00:57 +0200)]
gweb: Update copyright information

12 years agonmcompat: Use more detailed state information
Marcel Holtmann [Sat, 28 Apr 2012 22:49:54 +0000 (00:49 +0200)]
nmcompat: Use more detailed state information

12 years agonotifier: Fix small coding style issue
Marcel Holtmann [Sat, 28 Apr 2012 22:19:28 +0000 (00:19 +0200)]
notifier: Fix small coding style issue

12 years agonmcompat: Fix error message
Marcel Holtmann [Sat, 28 Apr 2012 22:05:21 +0000 (00:05 +0200)]
nmcompat: Fix error message

12 years agogssuplicant: Fix when a bss should be added or replaced in a network
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:08 +0000 (12:00 +0300)]
gssuplicant: Fix when a bss should be added or replaced in a network

Note: on wpa_supplivant 0.7.x this fixes bug 21332 _only_ when switching
from wep to psk, not the other way round due to wpa_supplicant not telling
about RSN/WPA fields being empty. This could be fixed in parsing IE every
time it is updated, if wpa_s signals it. It work properly on
wpa_supplicant 0.8.x and 1.x since signaling RSN/WPA changes has been
fixed.

Fixes BMC#21332

12 years agogsupplicant: Added more debugging messages when adding or replacing a network
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:07 +0000 (12:00 +0300)]
gsupplicant: Added more debugging messages when adding or replacing a network

12 years agogsupplicant: Creating an helper function to compute bss security
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:06 +0000 (12:00 +0300)]
gsupplicant: Creating an helper function to compute bss security

12 years agogsupplicant: Renaming a function for a more relevant name
Tomasz Bursztyka [Sat, 28 Apr 2012 09:00:05 +0000 (12:00 +0300)]
gsupplicant: Renaming a function for a more relevant name

12 years agoRelease 0.83 0.83
Marcel Holtmann [Fri, 27 Apr 2012 23:05:06 +0000 (01:05 +0200)]
Release 0.83

12 years agowispr: Set host routes when requested by gweb
Patrik Flykt [Fri, 27 Apr 2012 14:33:18 +0000 (17:33 +0300)]
wispr: Set host routes when requested by gweb

Set host routes via the interface and identified gateway when
requested by gweb. Remove host routes when the check is done.

Fixes BMC#25061

12 years agoipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()
Patrik Flykt [Fri, 27 Apr 2012 14:33:17 +0000 (17:33 +0300)]
ipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()

In order to be able to request a certain ipconfig type, add the type
as a parameter to __connman_ipconfig_get_gateway_from_index().

12 years agotools: Add WISPr route request debug printouts
Patrik Flykt [Fri, 27 Apr 2012 14:33:16 +0000 (17:33 +0300)]
tools: Add WISPr route request debug printouts

Update g_web_request_get() and add WISPr route request debug
printouts.

12 years agowispr: Update g_web_request_get()
Patrik Flykt [Fri, 27 Apr 2012 14:33:15 +0000 (17:33 +0300)]
wispr: Update g_web_request_get()

12 years ago6to4: Update g_web_request_get()
Patrik Flykt [Fri, 27 Apr 2012 14:33:14 +0000 (17:33 +0300)]
6to4: Update g_web_request_get()

12 years agogweb: Define GWebRouteFunc
Patrik Flykt [Fri, 27 Apr 2012 14:33:13 +0000 (17:33 +0300)]
gweb: Define GWebRouteFunc

Define GWebRouteFunc that will be called when a route to the
intended destination may need to be set up.

12 years agotechnology: Create the settings file in init
Jukka Rissanen [Fri, 27 Apr 2012 13:01:52 +0000 (16:01 +0300)]
technology: Create the settings file in init

We save offline mode status in init so that settings
file gets created if it was missing.

12 years agotechnology: Save technology state if entry is missing from file
Jukka Rissanen [Fri, 27 Apr 2012 13:01:51 +0000 (16:01 +0300)]
technology: Save technology state if entry is missing from file

So we save the technology status if the settings file does not
contain it.

12 years agostorage: Create settings file only when migrating
Jukka Rissanen [Fri, 27 Apr 2012 13:01:50 +0000 (16:01 +0300)]
storage: Create settings file only when migrating

The settings file is created only when migrating
from default.profile. This means that technology
default values are used if settings file does not
exists.

12 years agotechnology: Offline mode is OFF by default
Jukka Rissanen [Fri, 27 Apr 2012 13:01:49 +0000 (16:01 +0300)]
technology: Offline mode is OFF by default

By defalt offline mode is OFF if settings file
is not found or OfflineMode entry is not found
in settings file.

12 years agotechnology: Enable ethernet by default
Jukka Rissanen [Fri, 27 Apr 2012 13:01:48 +0000 (16:01 +0300)]
technology: Enable ethernet by default

Ethernet is enabled by default if settings file is not found
or the Wired entry is not found in the file.

12 years agoAUTHORS: Metion Adrien's contribution
Marcel Holtmann [Fri, 27 Apr 2012 12:07:56 +0000 (14:07 +0200)]
AUTHORS: Metion Adrien's contribution

12 years agoopenvpn: Fix --comp-lzo parameter handling
Adrien Bustany [Fri, 27 Apr 2012 07:59:04 +0000 (10:59 +0300)]
openvpn: Fix --comp-lzo parameter handling

The previous code would assume all commandline options to have a value,
whereas --comp-lzo does not. As a result, openvpn's argv would have a
spurious empty string in its argv, and openvpn would not launch.

12 years agotest: Pretty-print timservers in list-services
Patrik Flykt [Thu, 26 Apr 2012 13:28:20 +0000 (16:28 +0300)]
test: Pretty-print timservers in list-services

12 years agobuild: Fix broken build without GnuTLS
Marcel Holtmann [Thu, 26 Apr 2012 16:22:07 +0000 (18:22 +0200)]
build: Fix broken build without GnuTLS

12 years agoagent: If service has no security, do not ask for a passphrase
Alok Barsode [Thu, 26 Apr 2012 10:17:43 +0000 (13:17 +0300)]
agent: If service has no security, do not ask for a passphrase

12 years agowifi: Set connected to false before associating when disconnected
Tomasz Bursztyka [Thu, 26 Apr 2012 07:30:20 +0000 (10:30 +0300)]
wifi: Set connected to false before associating when disconnected

This way it will trigger the error which will be reported to service.

12 years agowifi: Be connected when relevant, stay connected if roaming
Tomasz Bursztyka [Wed, 25 Apr 2012 15:39:19 +0000 (18:39 +0300)]
wifi: Be connected when relevant, stay connected if roaming

12 years agodoc: Fix description of technology scan method
Marcel Holtmann [Thu, 26 Apr 2012 06:29:50 +0000 (08:29 +0200)]
doc: Fix description of technology scan method

12 years agobuild: Fix broken --disable-bluetooth
Marcel Holtmann [Wed, 25 Apr 2012 15:22:54 +0000 (17:22 +0200)]
build: Fix broken --disable-bluetooth

12 years agoservice: Fixing which wpspin we set according to PBC method or not
Tomasz Bursztyka [Wed, 25 Apr 2012 11:22:14 +0000 (14:22 +0300)]
service: Fixing which wpspin we set according to PBC method or not

For PBC method, the WiFi.PinWPS has to be NULL.

Fixes BMC#25076

12 years agodnsproxy: Delay cache removal
Jukka Rissanen [Wed, 25 Apr 2012 07:41:59 +0000 (10:41 +0300)]
dnsproxy: Delay cache removal

The idea here is to delay cache removal few seconds if there
are no cache users any more (refcount goes to 0). This is useful
for IPv6 RDNSS where new DNS servers are created right after old
one is removed. In this case we do not want to loose the cache
that still has perfectly valid data.

12 years agoipconfig: Do not tweak IPv6 status of ignored devices
Jukka Rissanen [Wed, 25 Apr 2012 08:20:04 +0000 (11:20 +0300)]
ipconfig: Do not tweak IPv6 status of ignored devices

12 years agoethernet: Fix small whitespace issue
Marcel Holtmann [Wed, 25 Apr 2012 08:56:23 +0000 (10:56 +0200)]
ethernet: Fix small whitespace issue

12 years agoservice: Stay at ready state with a preferred technology
Patrik Flykt [Wed, 25 Apr 2012 08:35:03 +0000 (11:35 +0300)]
service: Stay at ready state with a preferred technology

Stay at ready state with a preferred technology also when the
online check fails. Otherwise we end up in an endless autoconnect
loop with two preferred WiFi networks where neither one goes to
online.

Print out a warning message when the online check fails.

12 years agoservice: Use the right network keyword for wps
Tomasz Bursztyka [Wed, 25 Apr 2012 05:27:36 +0000 (08:27 +0300)]
service: Use the right network keyword for wps

12 years agoRelease 0.82 0.82
Marcel Holtmann [Tue, 24 Apr 2012 15:17:10 +0000 (17:17 +0200)]
Release 0.82

12 years agowifi: Fixing autoscan device unref issues
Tomasz Bursztyka [Tue, 24 Apr 2012 15:10:00 +0000 (18:10 +0300)]
wifi: Fixing autoscan device unref issues

- stop_autoscan() should unref the device only when relevant, i.e. when
interval and/or timeout have been set.
- autoscan_scan_callback() should unref the device since it has been
referenced in throw_wifi_scan()

12 years agoresolver: Use proper IPv6 source address when sending DNS queries
Jukka Rissanen [Tue, 24 Apr 2012 13:40:41 +0000 (16:40 +0300)]
resolver: Use proper IPv6 source address when sending DNS queries

This fix is for following scenario:
 - New interface is coming up.
 - There is radvd in the connected network and it is
   advertising IPv6 addresses and DNS servers.
 - Kernel receives router advertisement and picks up the DNS
   server information which is then routed via netlink to
   rtnl.c:rtnl_newnduseropt() which then creates DNS listener.
 - Kernel activates DAD (duplicate address detection).
 - As the DAD takes some time we now have interface up
   and it only has link local IPv6 address defined.
 - The DNS listener is now using link local source addresses when
   sending queries instead of proper autoconfigured addresses.
 - When DAD is finished, the interface will have autoconfigured
   addresses assigned and corresponding netlink message will cause
   function rtnl.c:process_newaddr() to be called.
 - If all this happens, then we re-create DNS listener
   in dnsproxy.c so that listener will have a proper
   (autoconfigured) source address when sending DNS packets.

12 years agowifi: Autoscan should be started or stopped according to interface's state
Tomasz Bursztyka [Tue, 24 Apr 2012 13:29:51 +0000 (16:29 +0300)]
wifi: Autoscan should be started or stopped according to interface's state