Re: Can't connect to VPN

2013-01-08 Thread Yevhen Kyriukha
I checked "/var/lib/connman" after reboot and settings are there. There is a "/var/lib/connman/provider_vpnhost_ua_" directory and it has "settings" file with following content: [vpnhost_ua_] Name=MyVpn Type=openvpn Host=vpnhost.ua VPN.Domain= OpenVPN.CACert=/var/lib/vpn/ca.crt OpenVPN.Cert=/var/l

Re: [PATCH] gsupplicant: Return max SSIDs to scan given by wpa_supplicant

2013-01-08 Thread Stan Hu
This solves the problem. Thanks. On Tue, Jan 8, 2013 at 1:32 AM, wrote: > From: Patrik Flykt > > Although it seems wpa_supplicant can handle 4 SSIDs in version 0.7.x > and 16 starting with 0.8.x, in practise this does not work. Thus > return the value reported without relying on wpa_supplicant

Re: [PATCH 1/2] inet: Fix error handling when adding/removing routes

2013-01-08 Thread Forest Bond
On Tue, Jan 08, 2013 at 03:06:10PM +0200, Patrik Flykt wrote: > On Mon, 2013-01-07 at 09:24 -0500, Forest Bond wrote: > > Functions that add and remove routes now return an appropriate error > > code. EEXIST and ESRCH are ignored when adding and removing routes > > (respectively) to reduce spuriou

Re: Can't connect to VPN

2013-01-08 Thread Patrik Flykt
On Tue, 2013-01-08 at 16:42 +0200, Yevhen Kyriukha wrote: > Also I checked /var/lib/connman/ directory and settings folder is > there. In here you see a vpn_ directory after running 'connect-provider', right? And on reboot /var/lib/connman/ is empty? I'd start to suspect that /var/* is cleared

Re: Can't connect to VPN

2013-01-08 Thread Yevhen Kyriukha
I'm building connman for Rasberry Pi device with following configure options: --build=x86_64-linux --host=arm-oe-linux-gnueabi --target=arm-oe-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr

Re: [PATCH] build: Do not use deprecated AM_CONFIG_HEADER

2013-01-08 Thread Patrik Flykt
On Tue, 2013-01-08 at 10:34 +0100, Julien Massot wrote: > The long-obsoleted AM_CONFIG_HEADER macro was removed in automake 1.13. > Use AC_CONFIG_HEADERS instead. Applied, thanks! Patrik ___ connman mailing list connman@connman.net http://lists

Re: [PATCH 2/2] inet: Fix error handling when bridging interfaces

2013-01-08 Thread Patrik Flykt
On Mon, 2013-01-07 at 09:24 -0500, Forest Bond wrote: > From: Forest Bond > > Functions that add and remove interfaces to and from bridges now return > an appropriate error code. Applied, thanks! Patrik ___ connman mailing list connman@connma

Re: [PATCH] vpn-provider: Check if providers list is NULL before using it

2013-01-08 Thread Patrik Flykt
On Tue, 2013-01-08 at 13:57 +0200, patrik.fl...@linux.intel.com wrote: > vpn/vpn-provider.c |3 +++ > 1 file changed, 3 insertions(+) Applied. Patrik ___ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman

Re: [PATCH 1/2] inet: Fix error handling when adding/removing routes

2013-01-08 Thread Patrik Flykt
On Mon, 2013-01-07 at 09:24 -0500, Forest Bond wrote: > Functions that add and remove routes now return an appropriate error > code. EEXIST and ESRCH are ignored when adding and removing routes > (respectively) to reduce spurious error messages in the logs. Applied, thanks! Patrik _

Re: Can't connect to VPN

2013-01-08 Thread Patrik Flykt
Hi, On Tue, 2013-01-08 at 00:43 +0200, Yevhen Kyriukha wrote: > I'm using connman v1.10. > I created settings for my VPN connection in /var/lib/connman directory. > I want connman to bring VPN connection automatically at boot time. Did you use 'test/connect-provider' to create the VPNs

[PATCH] vpn-provider: Check if providers list is NULL before using it

2013-01-08 Thread patrik . flykt
From: Patrik Flykt --- vpn/vpn-provider.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c index 4c9fa15..56a9c51 100644 --- a/vpn/vpn-provider.c +++ b/vpn/vpn-provider.c @@ -1595,6 +1595,9 @@ static void provider_create_all_from_type(const char

[PATCH] gsupplicant: Return max SSIDs to scan given by wpa_supplicant

2013-01-08 Thread patrik . flykt
From: Patrik Flykt Although it seems wpa_supplicant can handle 4 SSIDs in version 0.7.x and 16 starting with 0.8.x, in practise this does not work. Thus return the value reported without relying on wpa_supplicant internals to handle the situation. --- At least the supplicant.c part should apply

[PATCH] build: Do not use deprecated AM_CONFIG_HEADER

2013-01-08 Thread Julien Massot
The long-obsoleted AM_CONFIG_HEADER macro was removed in automake 1.13. Use AC_CONFIG_HEADERS instead. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 44508ac..3d4df0b 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @

[PATCH v2] main: Add memory profiling support

2013-01-08 Thread Daniel Wagner
From: Daniel Wagner When the debug option is set ('-d') then the glib memory profiling subsystem is enabled. To see the profiling information send a SIGRTMIN to connman, e.g. killall -34 connmand --- v2: Updated according Marcel's comments. src/main.c | 40 +-

Re: connman wlan0 scan gets stuck?

2013-01-08 Thread Patrik Flykt
On Mon, 2013-01-07 at 13:31 -0800, Stan Hu wrote: > connmand[2478]: plugins/wifi.c:wifi_scan_fast() device 0x99048 0x91738 > connmand[2478]: plugins/wifi.c:wifi_scan_fast() max ssids 4 > > The driver on my WiFi device supports only 1 SSID scan. Since connman > attempts to feed 2 SSID devices, the