Re: How to Identify the chosen association type of Wifi AP

2014-11-19 Thread Tomasz Bursztyka

Hi Frederic,


Is there such information about WPS sequence initiated by user on the
remote AP ?


The theory:

In case of WPS PBC, ConnMan is supposed to handle that automatically, 
which means
if the AP - related to the service the user wants to connect to - has 
started a WPS PBC
sequence, ConnMan will detect it and silently go with it, without 
requesting anything

through the Agent.

In case of WPS PIN, we don't do anything but doing the usual Agent call, 
which lets the
user doing the right thing. We don't provide details. That's something 
we should/could fix

in a futur rewrite of the API (ConnMan 2.0?)

The practice:
It's unfortunately not unusual to get buggy AP on WPS. Like during the 
WPS process, some
tend to forget to advertize it - through the IEs - in all of their 
frames (so if we catch and analyze

a wrong one: our logic does not apply).
And of course, wpa_supplicant or ConnMan could have a bug. Depends on 
what you are

experiencing.

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


Re: How to Identify the chosen association type of Wifi AP

2014-11-19 Thread Patrik Flykt

Hi,

On Wed, 2014-11-19 at 09:13 +0100,
frederic.wo...@continental-corporation.com wrote:
> Hi All
> 
> I would like to know if connman agent provides the information to identify 
> the association type of Wifi AP chosen by the user in particular with WPS.
> AFAIU when starting association to an AP proposing WPA2 and WPS, connman 
> agent requestInput function tells possible association types but not if 
> user already started a WPS sequence.
> 
> Is there such information about WPS sequence initiated by user on the 
> remote AP ?

No additional information about WPS is presented except the "Security"
attribute in the Service API.

If WPS is supported, Agent API adds an "WPS" attribute to the
RequestInput method call in addition to the "Passphrase" one. The agent
can then present this to the user.

If the WPS sequence has already been started on the AP, ConnMan will
connect using WPS without asking the Agent. For this to happen, ConnMan
needs to be explicitly instructed to connect to the service via the
Service API.

Cheers,

Patrik

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


How to Identify the chosen association type of Wifi AP

2014-11-19 Thread Frederic . Wolff
Hi All

I would like to know if connman agent provides the information to identify 
the association type of Wifi AP chosen by the user in particular with WPS.
AFAIU when starting association to an AP proposing WPA2 and WPS, connman 
agent requestInput function tells possible association types but not if 
user already started a WPS sequence.

Is there such information about WPS sequence initiated by user on the 
remote AP ?

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