Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Patrik Flykt
On Tue, 2015-05-19 at 18:06 +0530, Vidhya Govindan wrote:
> I understand connman supports known connections and establishes
> connection to the known networks automatically. Please correct me if I
> am wrong. We are thinking if it is possible to save our custom WLAN
> profiles as part of known connections and prefer those connections
> when available.

The easiest solution would be to have autoconnect enabled only for those
custom WiFi networks. ConnMan already supports service provisioning, see
doc/config-format.txt.

> Also currently how does connman decide to switch from one WLAN to
> another WLAN network?

It doesn't switch from a WiFi network to another before the previous one
drops. Inside a WiFi network wpa_supplicant of course roams from AP to
AP when needed.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: service state transition to ready

2015-05-19 Thread Patrik Flykt

Hi,

On Tue, 2015-05-19 at 12:58 -0700, Naveen Singh wrote:
> Thanks for the response. Is there a way currently for it to change the
> condition from OR to AND.

No.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Daniel Wagner
On 05/19/2015 01:30 PM, Vidhya Govindan wrote:
> Can we add our scanning and triggering algorithm to connect to WLAN within
> connman framework (bypassing or overriding connman's algorithm)?

Have a ook at the session_policy_local.c plugin. There is also an out
of tree toy plugin for this: 

http://git.projects.genivi.org/?p=pold.git;a=blob;f=connman/0001-session_policy_pold-Add-session-plugin-for-remote-co.patch;hb=HEAD

Maybe you can implement with those APIs what you want.

HTH,
daniel
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: service state transition to ready

2015-05-19 Thread Naveen Singh
Hi
Thanks for the response. Is there a way currently for it to change the
condition from OR to AND.

Regards
Naveen

On Tue, May 19, 2015 at 1:25 AM, Patrik Flykt 
wrote:

>
> Hi,
>
> On Sun, 2015-05-17 at 04:40 -0700, Naveen Singh wrote:
> > I have a link local ipv6 address for my service (method is Auto for
> IPV6).
> > For IPV4 the method is DHCP. I see that service state is transitioning to
> > ready w/o a valid IPv4 address. So I am not sure what is triggering the
> > state transition to ready w/o a valid IP address. Is it IPv6 auto method
> > making service transition to ready w/o waiting for DHCP to assign an IPV4
> > address? Is their a way in which I can make service state transition to
> > ready only with a valid IPv4 address.
>
> State transition to 'Ready' happens when either the IPv4 or IPv6
> connection transitions to state 'Ready'. This means IPv4 need not be
> ready at the time there is connectivity to the network.
>
> Cheers,
>
> Patrik
>
>
> ___
> connman mailing list
> connman@connman.net
> https://lists.connman.net/mailman/listinfo/connman
>
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Vidhya Govindan
Hi,

Thanks for your response.

> As there is currently no code in ConnMan that does this, feel free to
> implement it. The code is GPLv2, so you'll have all of if anyway.  But
> as I don't know what you really need or how you are going to implement
> it, I don't know if this will be useful for upstream.

I understand connman supports known connections and establishes
connection to the known networks automatically. Please correct me if I
am wrong. We are thinking if it is possible to save our custom WLAN
profiles as part of known connections and prefer those connections
when available.

Also currently how does connman decide to switch from one WLAN to
another WLAN network?

Could you please provide a brief note about this?

Thanks again,

Vidhya



On Tue, May 19, 2015 at 5:29 PM, Vidhya Govindan 
wrote:

> > Why not explain on the mailing list what kind of features you need so
> > that the audience can see if the modifications are general enough that
> > they apply for everybody?
>
> Our features are in design stage now. It would focus more on providing 
> preferences
> for certain networks based on custom policy config file and triggering the 
> connection
> based on a certain rssi threshold value for WLAN networks.
>
> Wanted to know if we can implement such custom connection preferences and 
> connection triggering mechanisms in connman
>
> using plugins or some other way. Could you please let us know the possibility?
>
> *> *Neither is supported right now. Please feel free to implement these.
>
> Thanks for your response. If we have a way to implement the above features 
> (connection preference
>
> and connection triggering mechanism), we can work on to support IP mobility 
> using
>
> connman.
>
> Thanks,
>
> Vidhya
>
>
> On Tue, May 19, 2015 at 5:00 PM, Vidhya Govindan 
> wrote:
>
>> Hello Patrik,
>>
>> Thanks for your response.
>>
>> Can we add our scanning and triggering algorithm to connect to WLAN
>> within connman framework (bypassing or overriding connman's algorithm)?
>> Also we are interested to know connman's support for UMIP - DSMIPv6 (to
>> provide IP mobility).
>> Please provide your inputs.
>>
>> Thanks,
>> Vidhya
>>
>>
>> On Tue, May 19, 2015 at 4:17 PM, Vidhya Govindan 
>> wrote:
>>
>>> Hello group members,
>>>
>>> We are working on a project to support Hotspot 2.0 WLAN client and 3G
>>> connection. We are planning to use connman for our project and want to know
>>> if connman can support WLAN connections based on 802.11x authentication.
>>> Could you please let us know about the support for WLAN connection with
>>> 802.11x authentication.
>>>
>>> Thanks in advance.
>>>
>>> Thanks,
>>> Vidhya
>>>
>>
>>
>
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] build: Suppress output when creating directories

2015-05-19 Thread Patrik Flykt
On Tue, 2015-05-19 at 10:36 +0300, Patrik Flykt wrote:
> When the directories are created, suppress printouts by default.

Applied.

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] build: create directories before putting files in them

2015-05-19 Thread Patrik Flykt
On Fri, 2015-05-01 at 15:16 +0100, Ross Burton wrote:
> When automake's dependency tracking is enabled a mirror of the source tree is
> created in the build directory as it writes the dependency information.
> 
> However, if dependency tracking is disabled on an out-of-tree build this 
> mirror
> isn't created and it's possible that the .service files can't be written as 
> the
> directories they go into haven't been created yet (racing against the 
> compiles,
> which do create directories).

Applied, thanks!

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Patrik Flykt

Hi,

On Tue, 2015-05-19 at 17:29 +0530, Vidhya Govindan wrote:
> Wanted to know if we can implement such custom connection preferences
> and connection triggering mechanisms in connman using plugins or some
> other way. Could you please let us know the possibility?

As there is currently no code in ConnMan that does this, feel free to
implement it. The code is GPLv2, so you'll have all of if anyway.  But
as I don't know what you really need or how you are going to implement
it, I don't know if this will be useful for upstream.

Cheers,

Patrik


___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Vidhya Govindan
> Why not explain on the mailing list what kind of features you need so
> that the audience can see if the modifications are general enough that
> they apply for everybody?

Our features are in design stage now. It would focus more on providing
preferences
for certain networks based on custom policy config file and triggering
the connection
based on a certain rssi threshold value for WLAN networks.

Wanted to know if we can implement such custom connection preferences
and connection triggering mechanisms in connman

using plugins or some other way. Could you please let us know the possibility?

*> *Neither is supported right now. Please feel free to implement these.

Thanks for your response. If we have a way to implement the above
features (connection preference

and connection triggering mechanism), we can work on to support IP
mobility using

connman.

Thanks,

Vidhya


On Tue, May 19, 2015 at 5:00 PM, Vidhya Govindan 
wrote:

> Hello Patrik,
>
> Thanks for your response.
>
> Can we add our scanning and triggering algorithm to connect to WLAN within
> connman framework (bypassing or overriding connman's algorithm)?
> Also we are interested to know connman's support for UMIP - DSMIPv6 (to
> provide IP mobility).
> Please provide your inputs.
>
> Thanks,
> Vidhya
>
>
> On Tue, May 19, 2015 at 4:17 PM, Vidhya Govindan 
> wrote:
>
>> Hello group members,
>>
>> We are working on a project to support Hotspot 2.0 WLAN client and 3G
>> connection. We are planning to use connman for our project and want to know
>> if connman can support WLAN connections based on 802.11x authentication.
>> Could you please let us know about the support for WLAN connection with
>> 802.11x authentication.
>>
>> Thanks in advance.
>>
>> Thanks,
>> Vidhya
>>
>
>
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Patrik Flykt

Hi,

On Tue, 2015-05-19 at 17:00 +0530, Vidhya Govindan wrote:

> Can we add our scanning and triggering algorithm to connect to WLAN within
> connman framework (bypassing or overriding connman's algorithm)?

Why not explain on the mailing list what kind of features you need so
that the audience can see if the modifications are general enough that
they apply for everybody?

> Also we are interested to know connman's support for UMIP - DSMIPv6 (to
> provide IP mobility).

Neither is supported right now. Please feel free to implement these.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Vidhya Govindan
Hello Patrik,

Thanks for your response.

Can we add our scanning and triggering algorithm to connect to WLAN within
connman framework (bypassing or overriding connman's algorithm)?
Also we are interested to know connman's support for UMIP - DSMIPv6 (to
provide IP mobility).
Please provide your inputs.

Thanks,
Vidhya

On Tue, May 19, 2015 at 4:17 PM, Vidhya Govindan 
wrote:

> Hello group members,
>
> We are working on a project to support Hotspot 2.0 WLAN client and 3G
> connection. We are planning to use connman for our project and want to know
> if connman can support WLAN connections based on 802.11x authentication.
> Could you please let us know about the support for WLAN connection with
> 802.11x authentication.
>
> Thanks in advance.
>
> Thanks,
> Vidhya
>
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: connman support for 802.11x based WLAN connections

2015-05-19 Thread Patrik Flykt

Hi,

On Tue, 2015-05-19 at 16:17 +0530, Vidhya Govindan wrote:
> Hello group members,
> 
> We are working on a project to support Hotspot 2.0 WLAN client and 3G
> connection. We are planning to use connman for our project and want to know
> if connman can support WLAN connections based on 802.11x authentication.
> Could you please let us know about the support for WLAN connection with
> 802.11x authentication.

ConnMan supports 802.11x authentication using tls, ttls or peap. Since
the technology used is WiFi, the 802.11x authentication is done by
wpa_supplicant.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


connman support for 802.11x based WLAN connections

2015-05-19 Thread Vidhya Govindan
Hello group members,

We are working on a project to support Hotspot 2.0 WLAN client and 3G
connection. We are planning to use connman for our project and want to know
if connman can support WLAN connections based on 802.11x authentication.
Could you please let us know about the support for WLAN connection with
802.11x authentication.

Thanks in advance.

Thanks,
Vidhya
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: service state transition to ready

2015-05-19 Thread Patrik Flykt

Hi,

On Sun, 2015-05-17 at 04:40 -0700, Naveen Singh wrote:
> I have a link local ipv6 address for my service (method is Auto for IPV6).
> For IPV4 the method is DHCP. I see that service state is transitioning to
> ready w/o a valid IPv4 address. So I am not sure what is triggering the
> state transition to ready w/o a valid IP address. Is it IPv6 auto method
> making service transition to ready w/o waiting for DHCP to assign an IPV4
> address? Is their a way in which I can make service state transition to
> ready only with a valid IPv4 address.

State transition to 'Ready' happens when either the IPv4 or IPv6
connection transitions to state 'Ready'. This means IPv4 need not be
ready at the time there is connectivity to the network.

Cheers,

Patrik


___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] build: create directories before putting files in them

2015-05-19 Thread Patrik Flykt
On Tue, 2015-05-12 at 18:07 +0300, Patrik Flykt wrote:
> On Fri, 2015-05-01 at 15:16 +0100, Ross Burton wrote:
> >  scripts/connman: scripts/connman.in Makefile
> > +   $(AM_V_at)$(MKDIR_P) scripts
> 
> Should this be $(AM_V_AT)$(MKDIR_P) $(dir $@) as the rest of the lines
> above?

Replying to myself: your patch is fine, it's the AM_V_at that one wants
to apply as it suppresses output by default.

Cheers,

Patrik


___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


[PATCH] build: Suppress output when creating directories

2015-05-19 Thread Patrik Flykt
When the directories are created, suppress printouts by default.
---
 Makefile.am | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index bc3c695..886cace 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -410,11 +410,11 @@ MAINTAINERCLEANFILES = Makefile.in \
 
 
 src/builtin.h: src/genbuiltin $(builtin_sources)
-   $(AM_V_AT)$(MKDIR_P) $(dir $@)
+   $(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
 
 vpn/builtin.h: src/genbuiltin $(builtin_vpn_sources)
-   $(AM_V_AT)$(MKDIR_P) $(dir $@)
+   $(AM_V_at)$(MKDIR_P) $(dir $@)
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_vpn_modules) > $@
 
 src/connman.conf: src/connman-dbus.conf src/connman-polkit.conf
@@ -451,11 +451,11 @@ do_subst = $(AM_V_GEN)$(SED) \
-e 's,[@]sysconfdir[@],$(sysconfdir),g'
 
 %.service: %.service.in Makefile
-   $(AM_V_AT)$(MKDIR_P) $(dir $@)
+   $(AM_V_at)$(MKDIR_P) $(dir $@)
$(do_subst) < $< > $@
 
 scripts/connman: scripts/connman.in Makefile
-   $(AM_V_at)$(MKDIR_P) scripts
+   $(AM_V_at)$(MKDIR_P) $(dir $@)
$(do_subst) < $< > $@
 
 include/connman/version.h: include/version.h
-- 
2.1.4

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] service: Check ipconfig method before attempting changes

2015-05-19 Thread Patrik Flykt
On Tue, 2015-05-12 at 10:48 +0300, Patrik Flykt wrote:
> If the ipconfig method is off, ensure that the resulting state will also
> be idle so that wrong actions are not taken. Print out a warning if the
> IP configuration state and method do not match.

Applied.

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] service: Sync timeservers when ipconfig state has changed

2015-05-19 Thread Patrik Flykt
On Thu, 2015-04-30 at 13:48 +0300, Patrik Flykt wrote:
> Do timeserver synchronization when either of the service IP
> configurations have changed. As the timeservers may be expressed
> by host name, it is a good idea to redo the IP name resolution
> at this point.
> 
> Reported by Olivier Pinel and Adam Moore

Applied.

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: [PATCH] service: Indicate which IP configuration type to add or remove

2015-05-19 Thread Patrik Flykt
On Tue, 2015-05-12 at 10:47 +0300, Patrik Flykt wrote:
> In order not to remove all nameservers when one IP configuration type
> is removed, indicate which IP version the remove is intended for. For
> consistency, indicate IP configuration type also when adding nameservers.

Applied.

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman