platform/upstream/connman.git
13 years agoopenvpn: Use parser table instead of open coding
Daniel Wagner [Thu, 27 Jan 2011 15:54:23 +0000 (16:54 +0100)]
openvpn: Use parser table instead of open coding

Use the same approach as in VPNC for passing
arguments from the provider to OpenVPN client.

13 years agoservice: Check for WPS support only in the WiFi case
Samuel Ortiz [Thu, 27 Jan 2011 15:26:44 +0000 (16:26 +0100)]
service: Check for WPS support only in the WiFi case

13 years agoprovider: route_env_parse should depend on type not name
Daniel Wagner [Thu, 27 Jan 2011 13:11:19 +0000 (14:11 +0100)]
provider: route_env_parse should depend on type not name

13 years agoopenvpn: Fix typo in routing prefix check
Daniel Wagner [Thu, 27 Jan 2011 13:11:18 +0000 (14:11 +0100)]
openvpn: Fix typo in routing prefix check

13 years agoTODO: Removing WPS related part
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:45 +0000 (10:09 +0200)]
TODO: Removing WPS related part

13 years agogsupplicant: Disconnect request might not need to go through RemoveNetwork call
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:44 +0000 (10:09 +0200)]
gsupplicant: Disconnect request might not need to go through RemoveNetwork call

13 years agotest: WPS input added in agent test script
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:43 +0000 (10:09 +0200)]
test: WPS input added in agent test script

13 years agoservice: WPS connection logic
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:42 +0000 (10:09 +0200)]
service: WPS connection logic

13 years agoagent: WPS input request logic
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:41 +0000 (10:09 +0200)]
agent: WPS input request logic

13 years agoservice: WPS enabled getter
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:40 +0000 (10:09 +0200)]
service: WPS enabled getter

13 years agodoc: WPS method input documentation added to agent-api.txt
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:39 +0000 (10:09 +0200)]
doc: WPS method input documentation added to agent-api.txt

13 years agotest: WPS property support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:38 +0000 (10:09 +0200)]
test: WPS property support

13 years agodoc: Add service WPS attribute to service-api.txt
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:37 +0000 (10:09 +0200)]
doc: Add service WPS attribute to service-api.txt

13 years agoservice: WPS support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:36 +0000 (10:09 +0200)]
service: WPS support

13 years agowifi: WPS support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:35 +0000 (10:09 +0200)]
wifi: WPS support

13 years agonetwork: WPS support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:34 +0000 (10:09 +0200)]
network: WPS support

13 years agogsupplicant: WPS start() method implementation
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:33 +0000 (10:09 +0200)]
gsupplicant: WPS start() method implementation

13 years agogsupplicant: WPS event signal support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:32 +0000 (10:09 +0200)]
gsupplicant: WPS event signal support

13 years agogsupplicant: WPS credentials signal support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:31 +0000 (10:09 +0200)]
gsupplicant: WPS credentials signal support

13 years agogsupplicant: bss/network wps enabled support
Tomasz Bursztyka [Wed, 26 Jan 2011 08:09:30 +0000 (10:09 +0200)]
gsupplicant: bss/network wps enabled support

13 years agoofono: be proactive with registration status
Pekka Pessi [Wed, 26 Jan 2011 14:50:40 +0000 (16:50 +0200)]
ofono: be proactive with registration status

Return error immediately if connection attempts are known to fail.

13 years agoofono: be proactive when connecting
Pekka Pessi [Wed, 26 Jan 2011 14:50:39 +0000 (16:50 +0200)]
ofono: be proactive when connecting

Return error immediately if connection attempts are known to fail.

13 years agoservice: Mark service as failed if connect fails
Pekka Pessi [Wed, 26 Jan 2011 14:50:38 +0000 (16:50 +0200)]
service: Mark service as failed if connect fails

The connman_network/provider_connect() could fail in two different ways,
returning an error code or setting the service state to failed.

Ethernet, WiMax, Bluetooth, VPN, Cellular and WiFi services now get
marked as failed if connect() fails with error code, too. This makes
connman_service_clear_error() and the autoconnect procedure to behave in
consistent manner.

13 years agoofono: Retry autoconnect when gprs gets attached
Pekka Pessi [Wed, 26 Jan 2011 14:50:37 +0000 (16:50 +0200)]
ofono: Retry autoconnect when gprs gets attached

13 years agonetwork: Add connman_network_clear_error()
Pekka Pessi [Wed, 26 Jan 2011 14:50:36 +0000 (16:50 +0200)]
network: Add connman_network_clear_error()

Clear the error on corresponding service (and set reconnect) in order to
retry autoconnecting.

13 years agoMakefile: Add build suppport for the vpnc plugin
Mohamed Abbas [Thu, 27 Jan 2011 07:55:28 +0000 (23:55 -0800)]
Makefile: Add build suppport for the vpnc plugin

13 years agoplugins: Initial vpnc support
Mohamed Abbas [Thu, 27 Jan 2011 09:49:46 +0000 (10:49 +0100)]
plugins: Initial vpnc support

13 years agodnsproxy: Fix public server support
Samuel Ortiz [Wed, 26 Jan 2011 23:46:36 +0000 (00:46 +0100)]
dnsproxy: Fix public server support

13 years agoprovider: Factorize VPN routing environment variables parsing
Samuel Ortiz [Wed, 26 Jan 2011 23:05:10 +0000 (00:05 +0100)]
provider: Factorize VPN routing environment variables parsing

13 years agoprovider: Set service pointer for provider_set_nameservers
Samuel Ortiz [Wed, 26 Jan 2011 20:23:28 +0000 (21:23 +0100)]
provider: Set service pointer for provider_set_nameservers

13 years agoprovider: Implement IPv6 route setting
Samuel Ortiz [Wed, 26 Jan 2011 16:03:12 +0000 (17:03 +0100)]
provider: Implement IPv6 route setting

13 years agoinet: IPv6 network route setting API
Samuel Ortiz [Wed, 26 Jan 2011 14:46:44 +0000 (15:46 +0100)]
inet: IPv6 network route setting API

13 years agoprovider: Handle empty nameservers
Daniel Wagner [Wed, 26 Jan 2011 08:22:06 +0000 (09:22 +0100)]
provider: Handle empty nameservers

If the VPN server doesn't set any DNS entries provider->nameservers is NULL.
When we change the state of the provider to CONNMAN_PROVIDER_STATE_READY
we shouldn't do any string operations on the NULL pointer namerservers.

(gdb) bt full
No symbol table info available.
        type = CONNMAN_ELEMENT_TYPE_IPV4
        nameservers = 0x0
        value = 0x0
        list = 0x1 = {<error reading variable list (Cannot access memory at address 0x1)>
        err = 0
        element = 0x6a5110
        name = 0x6a5550 "vpn0"
        second_ns = 0x69f1c0 "\004"
        service = 0x6a2630
No locals.

Fixes BMC#12508

Reported by Jeff Zheng <jeff.zheng@intel.com>

13 years agoondemand: Remove ondemand.c
Daniel Wagner [Wed, 26 Jan 2011 08:50:32 +0000 (09:50 +0100)]
ondemand: Remove ondemand.c

13 years agoresolver: Only support resolv.conf and dnsproxy
Daniel Wagner [Wed, 26 Jan 2011 08:50:33 +0000 (09:50 +0100)]
resolver: Only support resolv.conf and dnsproxy

Remove resolver module support.

13 years agodnsproxy: Add command line switch
Daniel Wagner [Wed, 26 Jan 2011 08:50:31 +0000 (09:50 +0100)]
dnsproxy: Add command line switch

Command line switch to disable dnsproxy.

13 years agodnsproxy: Fix checkpatch warnings
Daniel Wagner [Wed, 26 Jan 2011 08:50:30 +0000 (09:50 +0100)]
dnsproxy: Fix checkpatch warnings

13 years agodnsproxy: Move from plugins to core
Daniel Wagner [Wed, 26 Jan 2011 08:50:29 +0000 (09:50 +0100)]
dnsproxy: Move from plugins to core

13 years agoconfigure: Do not fail when systemd is not installed
Lucas De Marchi [Wed, 26 Jan 2011 00:23:13 +0000 (01:23 +0100)]
configure: Do not fail when systemd is not installed

Use --with-systemdsystemunitdir instead of --enabled-systemd so it's
possible to enable systemd even if systemd is not installed.

13 years agogweb: Check GString pointers before freeing them
Mohamed Abbas [Tue, 25 Jan 2011 22:17:37 +0000 (14:17 -0800)]
gweb: Check GString pointers before freeing them

Fixes BMC#12452

13 years agowifi: Balance scanning states
Mohamed Abbas [Tue, 25 Jan 2011 23:31:54 +0000 (00:31 +0100)]
wifi: Balance scanning states

By setting the scan state to TRUE from wifi_scan() and setting it back
to FALSE in the callback, the wifi device scanning state is consistent.

Fixes BMC#12104

13 years agoSmall coding style fixup for bridge enabling
Marcel Holtmann [Mon, 24 Jan 2011 16:41:30 +0000 (17:41 +0100)]
Small coding style fixup for bridge enabling

13 years agoInstall polkit policy file as net.connman.policy
Robert Piasek [Fri, 21 Jan 2011 16:19:28 +0000 (16:19 +0000)]
Install polkit policy file as net.connman.policy

13 years agoAdd debug info
Li Jian [Thu, 20 Jan 2011 07:40:57 +0000 (15:40 +0800)]
Add debug info

Some init/clean functions lack DBG("") which affects logs readability.

13 years agomanager: Send network-manager state change signals
Kalle Valo [Tue, 18 Jan 2011 13:01:15 +0000 (15:01 +0200)]
manager: Send network-manager state change signals

When using network-manager compatibility mode in connman applications,
for example pidgin and firefox, didn't notice when connman changed states
from offline to online (and vice versa) and applications would notice the
new state only after restarting them.

The problem was that connman wasn't sending StateChanged signals. After
adding them pidgin and firefox will notice the new states immeadiately.

13 years agoopenvpn: Remove double reason parsing
Daniel Wagner [Tue, 18 Jan 2011 10:05:05 +0000 (11:05 +0100)]
openvpn: Remove double reason parsing

Fix a copy/paste error.

Reported by Mohamed Abbas <mohamed.abbas@intel.com>

13 years agoRelease 0.67 0.67
Marcel Holtmann [Thu, 20 Jan 2011 06:24:35 +0000 (07:24 +0100)]
Release 0.67

13 years agoofono: Use dbus_bool_t instead of gboolean
Marcel Holtmann [Thu, 20 Jan 2011 06:19:39 +0000 (07:19 +0100)]
ofono: Use dbus_bool_t instead of gboolean

13 years agogdbus: Remove root node 'name' attribute in introspection
Daniel Wagner [Fri, 14 Jan 2011 15:14:21 +0000 (16:14 +0100)]
gdbus: Remove root node 'name' attribute in introspection

generate_introspection_xml generates the root <node> tags with a
'name' attribute. This seems to be a valid attribute but it is not
consistent with the way the D-Bus daemon generates empty nodes.

For example if we register "/foo/bar", D-Bus daemon will generate for
"/foo" a introspection which looks like this:

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
  <node name="bar"/>
</node>

and generate_introspection_xml generates for "/foo/bar":

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/foo/bar">
</node>

Just don't add the 'name' attribute to the root node.  The GLib
binding for D-Bus does it the same way.

13 years agogdbus: invaldate_parent_data: walk the whole path down
Daniel Wagner [Fri, 14 Jan 2011 15:14:20 +0000 (16:14 +0100)]
gdbus: invaldate_parent_data: walk the whole path down

Assume there is only one object registerd at "/". If we add a new
object at "/foo/bar" the introspection of "/" has to be updated. A new
node has to be added at "/".

invalidate_parent_data stops invaldating the whole path because the
boolean return value of dbus_connection_get_object_path_data is used
wrong.

If we get a TRUE just go on down in the path, if FALSE is return
dbus_connection_get_object_path_data has run out of memory.

13 years agoSet GIOChannel to no encoding and no buffering
Marcel Holtmann [Tue, 18 Jan 2011 20:21:57 +0000 (21:21 +0100)]
Set GIOChannel to no encoding and no buffering

13 years agoofono: avoid extra SetProperty("Online") calls
Pekka Pessi [Tue, 18 Jan 2011 15:13:51 +0000 (17:13 +0200)]
ofono: avoid extra SetProperty("Online") calls

Do not request SetProperty("Online") if the modem is already in desired
Online state.

13 years agoUse g_io_channel_read_chars instead of g_io_channel_read
Marcel Holtmann [Tue, 18 Jan 2011 14:07:15 +0000 (15:07 +0100)]
Use g_io_channel_read_chars instead of g_io_channel_read

13 years agoRemove pointless variable initialization
Marcel Holtmann [Tue, 18 Jan 2011 14:04:16 +0000 (15:04 +0100)]
Remove pointless variable initialization

13 years agoUse -DG_DISABLE_DEPRECATED compiler define
Marcel Holtmann [Tue, 18 Jan 2011 13:57:00 +0000 (14:57 +0100)]
Use -DG_DISABLE_DEPRECATED compiler define

13 years agoFixed comparison with "AutoConnect" in service
Pekka Pessi [Mon, 17 Jan 2011 21:45:45 +0000 (23:45 +0200)]
Fixed comparison with "AutoConnect" in service

13 years agoRemove MCC and MNC from Service doc
Pekka Pessi [Mon, 17 Jan 2011 21:45:44 +0000 (23:45 +0200)]
Remove MCC and MNC from Service doc

13 years agoRemove MCC and MNC from Service
Pekka Pessi [Mon, 17 Jan 2011 21:45:43 +0000 (23:45 +0200)]
Remove MCC and MNC from Service

MCC and MNC are not set by oFono plugin.

13 years agoClarify relation between AutoConnect and Roaming.
Pekka Pessi [Mon, 17 Jan 2011 21:45:42 +0000 (23:45 +0200)]
Clarify relation between AutoConnect and Roaming.

13 years agoRelease 0.66 0.66
Marcel Holtmann [Mon, 17 Jan 2011 17:04:17 +0000 (18:04 +0100)]
Release 0.66

13 years agoelement: Assign element name
Li Jian [Wed, 12 Jan 2011 03:19:01 +0000 (11:19 +0800)]
element: Assign element name

13 years agoservice: Do not reconnect to an already connected service
Samuel Ortiz [Thu, 13 Jan 2011 14:36:23 +0000 (15:36 +0100)]
service: Do not reconnect to an already connected service

Fixes BMC#11879

13 years agoservice: Proxy changes notifications
Samuel Ortiz [Wed, 12 Jan 2011 23:17:59 +0000 (00:17 +0100)]
service: Proxy changes notifications

notifier listening for proxy changes will get a heads up from WPAD or
from DHCP.

13 years agopacrunner: Implement proxy_changed hook
Samuel Ortiz [Wed, 12 Jan 2011 23:15:39 +0000 (00:15 +0100)]
pacrunner: Implement proxy_changed hook

When the default service proxy changes, a new configuration is pushed
to PACRunner.

13 years agonotifier: Add proxy changed hook
Samuel Ortiz [Wed, 12 Jan 2011 22:56:58 +0000 (23:56 +0100)]
notifier: Add proxy changed hook

With asynchronous WPAD operations, the proxy_changed notifier hook will
allow for a proper pacrunner configuration to be created.

13 years agoservice: Return DIRECT proxy if wpad_start fails
Samuel Ortiz [Wed, 12 Jan 2011 22:40:30 +0000 (23:40 +0100)]
service: Return DIRECT proxy if wpad_start fails

13 years agoservice: Return service proxy is configured PAC URL is not set
Samuel Ortiz [Wed, 12 Jan 2011 22:37:42 +0000 (23:37 +0100)]
service: Return service proxy is configured PAC URL is not set

If the proxy configured method is AUTO but the PAC URL is not set yet,
returning service->proxy will give the correct method when WPAD failed.

13 years agowpad: Set proxy method to DIRECT if WPAD name resolution failed
Samuel Ortiz [Wed, 12 Jan 2011 01:07:03 +0000 (02:07 +0100)]
wpad: Set proxy method to DIRECT if WPAD name resolution failed

13 years agoservice: Start WPAD if DHCP failed to provide a PAC URL
Samuel Ortiz [Wed, 12 Jan 2011 19:51:28 +0000 (20:51 +0100)]
service: Start WPAD if DHCP failed to provide a PAC URL

13 years agoservice: Start WPAD if proxy is not manually configured
Samuel Ortiz [Wed, 12 Jan 2011 19:09:23 +0000 (20:09 +0100)]
service: Start WPAD if proxy is not manually configured

WPAD starts also when the proxy method is configured to AUTO but
it's missing a PAC URL.

13 years agoservice: Add proxy_config for storing configured proxy method
Samuel Ortiz [Wed, 12 Jan 2011 23:36:34 +0000 (00:36 +0100)]
service: Add proxy_config for storing configured proxy method

If service->proxy_config is set, WPAD will not be started unless
proxy_config is AUTO but without a PAC URL.

13 years agoservice: Define proxy setting helper
Samuel Ortiz [Wed, 12 Jan 2011 00:39:10 +0000 (01:39 +0100)]
service: Define proxy setting helper

13 years agoservice: Set proxy to DIRECT if unknown
Samuel Ortiz [Tue, 11 Jan 2011 16:18:56 +0000 (17:18 +0100)]
service: Set proxy to DIRECT if unknown

13 years agoservice: Set proxy method to AUTO from set_proxy_autoconfig
Samuel Ortiz [Tue, 11 Jan 2011 15:38:32 +0000 (16:38 +0100)]
service: Set proxy method to AUTO from set_proxy_autoconfig

13 years agoTODO: Remove implemented entries
Samuel Ortiz [Tue, 11 Jan 2011 14:09:56 +0000 (15:09 +0100)]
TODO: Remove implemented entries

13 years agoAdd ipv4 and ipv6 method scripts to test_scripts
Samuel Ortiz [Mon, 10 Jan 2011 20:15:35 +0000 (21:15 +0100)]
Add ipv4 and ipv6 method scripts to test_scripts

13 years agoipconfig: Restore original IPv6 interface status when connman quits
Jukka Rissanen [Mon, 10 Jan 2011 16:03:31 +0000 (18:03 +0200)]
ipconfig: Restore original IPv6 interface status when connman quits

13 years agoipconfig: Set ipconfig method correctly for IPv4 and IPv6 config
Jukka Rissanen [Mon, 10 Jan 2011 16:03:30 +0000 (18:03 +0200)]
ipconfig: Set ipconfig method correctly for IPv4 and IPv6 config

13 years agotest: Fix set-ipv4-method usage print
Jukka Rissanen [Mon, 10 Jan 2011 16:03:29 +0000 (18:03 +0200)]
test: Fix set-ipv4-method usage print

13 years agotest: Renamed set-ip-method to be consistent with IPv6 script
Jukka Rissanen [Mon, 10 Jan 2011 16:03:28 +0000 (18:03 +0200)]
test: Renamed set-ip-method to be consistent with IPv6 script

13 years agotest: Test script for setting IPv6 Method
Jukka Rissanen [Mon, 10 Jan 2011 16:03:27 +0000 (18:03 +0200)]
test: Test script for setting IPv6 Method

13 years agodoc: Update description of Phase2-keyword
Henri Bragge [Mon, 10 Jan 2011 11:41:42 +0000 (13:41 +0200)]
doc: Update description of Phase2-keyword

13 years agogsupplicant: Support EAP phase2 authentication methods
Henri Bragge [Mon, 10 Jan 2011 11:41:41 +0000 (13:41 +0200)]
gsupplicant: Support EAP phase2 authentication methods

13 years agosupplicant: Support EAP phase2 authentication methods
Henri Bragge [Mon, 10 Jan 2011 11:41:40 +0000 (13:41 +0200)]
supplicant: Support EAP phase2 authentication methods

13 years agoservice: Do not unref ipconf layer upon disconnection
Samuel Ortiz [Mon, 10 Jan 2011 15:20:20 +0000 (16:20 +0100)]
service: Do not unref ipconf layer upon disconnection

The ipconfig layer is referenced at service creation time and should
thus be unreferenced when freeing said service.

13 years agowifi: Stack based crash risk fixed
Tomasz Bursztyka [Mon, 10 Jan 2011 10:16:23 +0000 (12:16 +0200)]
wifi: Stack based crash risk fixed

13 years agodoc: Fix possible values for IPv6 Method in service API
Jukka Rissanen [Fri, 7 Jan 2011 12:55:19 +0000 (14:55 +0200)]
doc: Fix possible values for IPv6 Method in service API

13 years agoservice: Do not disconnect IPv4 if IPv6 method changes
Jukka Rissanen [Sat, 8 Jan 2011 00:32:44 +0000 (01:32 +0100)]
service: Do not disconnect IPv4 if IPv6 method changes

13 years agoipconfig: Removed obsolete code
Jukka Rissanen [Fri, 7 Jan 2011 12:55:15 +0000 (14:55 +0200)]
ipconfig: Removed obsolete code

13 years agoipconfig: Removed obsolete parameter from __connman_ipconfig_set_config()
Jukka Rissanen [Fri, 7 Jan 2011 12:55:14 +0000 (14:55 +0200)]
ipconfig: Removed obsolete parameter from __connman_ipconfig_set_config()

13 years agoservice: Do not set the ipv6 method to OFF
Jukka Rissanen [Fri, 7 Jan 2011 12:55:12 +0000 (14:55 +0200)]
service: Do not set the ipv6 method to OFF

13 years agoipconfig: Default method is auto for IPv6
Jukka Rissanen [Fri, 7 Jan 2011 12:55:10 +0000 (14:55 +0200)]
ipconfig: Default method is auto for IPv6

13 years agoipconfig: Add AUTO ipconfig method for IPv6 auto configured addresses
Jukka Rissanen [Fri, 7 Jan 2011 12:55:09 +0000 (14:55 +0200)]
ipconfig: Add AUTO ipconfig method for IPv6 auto configured addresses

13 years agoipconfig: Remove unnecessary null checks
Jukka Rissanen [Fri, 7 Jan 2011 12:55:08 +0000 (14:55 +0200)]
ipconfig: Remove unnecessary null checks

13 years agogsupplicant: Use the prefixed version of phase2_auth value
Henri Bragge [Fri, 7 Jan 2011 14:10:18 +0000 (16:10 +0200)]
gsupplicant: Use the prefixed version of phase2_auth value

13 years agogsupplicant: Drop unnecessary quotes from phase2 value
Henri Bragge [Fri, 7 Jan 2011 14:10:17 +0000 (16:10 +0200)]
gsupplicant: Drop unnecessary quotes from phase2 value

13 years agosupplicant: Drop unnecessary quotes from phase2 value
Henri Bragge [Fri, 7 Jan 2011 14:10:16 +0000 (16:10 +0200)]
supplicant: Drop unnecessary quotes from phase2 value

13 years agoFix missing and empty WiFi APs issue after kill/restart
Leena Gunda [Fri, 7 Jan 2011 06:02:50 +0000 (11:32 +0530)]
Fix missing and empty WiFi APs issue after kill/restart

When ConnMan is SIGKILLed and restarted WiFi plugin will reuse the
existing interface and the BSSs list. For BSSs list the next iterator
contains the object path of next BSS but interface_bss_added() wrongly
assumes that the next iterator contains the key/value pairs for the BSS
properties and a GSupplicantNetwork is created with empty fields
resulting in and empty AP list.

Also the iterator is moved to next by both interface_bss_added() and
supplicant_dbus_array_foreach() resulting in not adding alternate
BSSs from the list.

Fix gsupplicant interface_bss_added() to distinguish between BSS's added
with/without the BSS properties.

Fixes BMC#10454 and #11201

13 years agoFix memory leaks in gsupplicant interface_property
Leena Gunda [Thu, 6 Jan 2011 06:27:33 +0000 (11:57 +0530)]
Fix memory leaks in gsupplicant interface_property

Free the interface properties before doing a g_strdup.

Fixes BMC#11687

13 years agoFix Valgrind invalid write error for WiFi plugin
Leena Gunda [Thu, 6 Jan 2011 05:49:51 +0000 (11:19 +0530)]
Fix Valgrind invalid write error for WiFi plugin

g_supplicant_unregister first destroys the interface table and then
invokes system_killed callback which will trigger wifi device driver
removal. wifi_remove will now set it's interface data to NULL but the
GSupplicantInterface has already been freed and hence the issue.

Invoking the system_killed callback before destroying the interface
table in gsupplicant will fix this issue.

Fixes BMC#11684