Re: Does ConnMan API suport WiFi Active scan &passive scan?

2014-11-25 Thread Tomasz Bursztyka

Hi,


When I use both connman APIs and wpe_supplicant APIs, is connman
designed not to cause contradiction?


As long as you don't mess up with anything else but scanning in
wpa_supplicant, it should be fine.

Doing more won't work. wpa_supplicant does not know who's right to do
A when another wants B, thus connman in our case is supposed to be the
only one handling all. However, as I said above, playing with 
wpa_supplicant's
API directly for scanning only should not affect ConnMan: it will get 
the results,

so once done you will be able to use those results through ConnMan.

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


RE: Does ConnMan API suport WiFi Active scan &passive scan?

2014-11-25 Thread Nakamura, Yusuke (ADITJ/SWG)
Hello

> -Original Message-
> From: connman [mailto:connman-boun...@connman.net] On Behalf Of Tomasz
> Bursztyka
> Sent: Wednesday, November 19, 2014 10:46 PM
> To: connman@connman.net
> Subject: Re: Does ConnMan API suport WiFi Active scan &passive scan?
> 
> Hi,
> 
> > For our automotive embedded project , we are trying to use ConnMan
to
> take care of all the basic networking.
> >
> > Does ConnMan API support Active scan & Passive scan?
> >
> > Would that be possible to execute only Active scan?
> 
> ConnMan itself does not run any scan, it requests wpa_supplicant to do
so.
> And it actually requests active or passive scan depending on the
context:
> 
> On the Scan() method it exposes through Technology API:
> 
> - if there is no known networks configured, it will do only passive
scans
> - if there is 1+ known networks configured, it will first do an active
scan
> on the last connected one, and then a passive scan. Exception: if
there
> is known hidden networks, it will do an active scan for those before
the
> passive one.
> 
> There are also behaviors on automatic scans for which I don't give
details
> here.
> 
> Afaik we don't plan to add parameters to Scan() to it would be
possible
> for the user to do a specific active scan. Scanning policies are
already
> quite complicated, to fit all uses-cases, proposing such feature would
just
> bring a bit of this complexity above ConnMan. This would go against
the
> idea, where ConnMan is here to simplify such things for the user and
not
> just wrap wifi features in an API.

This idea that Connmn does not to just wrap wifi features make sense to
me.
However, If connman isn't going to support scan features, I have to ask
another question.
When I use the APIs of wpa_supplicant, does the result of wpa_supplicant
feed back to connman?
I wonder using only wpa_supplicant might cause conflict the state
between connman and wpa_supplicant.
As far as I have confirmed by using scan APIs of wpa_supplicant, connman
seems to receive the feedback from wpa_supplicant. 
When I use both connman APIs and wpe_supplicant APIs, is connman
designed not to cause contradiction?

Best Regards.

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


RE: Does ConnMan API suport WiFi Active scan &passive scan?

2014-11-19 Thread Nakamura, Yusuke (ADITJ/SWG)
Hi, Tomasz

Thank you for your kind explanation.

Best Regards.
Yusuke Nakamura 中村 勇介
Advanced Driver Information Technology
Software Group (SWG)
Engineer
Tel: 0566-61-5117(ext:551-43641)
Fax:0566-25-4774
Email:ynakam...@jp.adit-jv.com



-Original Message-
From: connman [mailto:connman-boun...@connman.net] On Behalf Of Tomasz Bursztyka
Sent: Wednesday, November 19, 2014 10:46 PM
To: connman@connman.net
Subject: Re: Does ConnMan API suport WiFi Active scan &passive scan?

Hi,

> For our automotive embedded project , we are trying to use ConnMan to take 
> care of all the basic networking.
>
> Does ConnMan API support Active scan & Passive scan?
>
> Would that be possible to execute only Active scan?

ConnMan itself does not run any scan, it requests wpa_supplicant to do so.
And it actually requests active or passive scan depending on the context:

On the Scan() method it exposes through Technology API:

- if there is no known networks configured, it will do only passive scans
- if there is 1+ known networks configured, it will first do an active scan on 
the last connected one, and then a passive scan. Exception: if there is known 
hidden networks, it will do an active scan for those before the passive one.

There are also behaviors on automatic scans for which I don't give details here.

Afaik we don't plan to add parameters to Scan() to it would be possible for the 
user to do a specific active scan. Scanning policies are already quite 
complicated, to fit all uses-cases, proposing such feature would just bring a 
bit of this complexity above ConnMan. This would go against the idea, where 
ConnMan is here to simplify such things for the user and not just wrap wifi 
features in an API.

Br,

Tomasz
___
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: Does ConnMan API suport WiFi Active scan &passive scan?

2014-11-19 Thread Tomasz Bursztyka
Hi,

> For our automotive embedded project , we are trying to use ConnMan to take 
> care of all the basic networking.
>
> Does ConnMan API support Active scan & Passive scan?
>
> Would that be possible to execute only Active scan?

ConnMan itself does not run any scan, it requests wpa_supplicant to do so.
And it actually requests active or passive scan depending on the context:

On the Scan() method it exposes through Technology API:

- if there is no known networks configured, it will do only passive scans
- if there is 1+ known networks configured, it will first do an active
scan on the last
connected one, and then a passive scan. Exception: if there is known hidden
networks, it will do an active scan for those before the passive one.

There are also behaviors on automatic scans for which I don't give
details here.

Afaik we don't plan to add parameters to Scan() to it would be possible
for the user
to do a specific active scan. Scanning policies are already quite
complicated, to fit
all uses-cases, proposing such feature would just bring a bit of this
complexity above
ConnMan. This would go against the idea, where ConnMan is here to
simplify such
things for the user and not just wrap wifi features in an API.

Br,

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


Does ConnMan API suport WiFi Active scan &passive scan?

2014-11-19 Thread Nakamura, Yusuke (ADITJ/SWG)
Hello 

 

For our automotive embedded project , we are trying to use ConnMan to take care 
of all the basic networking.

Does ConnMan API support Active scan & Passive scan?

Would that be possible to execute only Active scan?

 

Best Regards,

 

Yusuke Nakamura 中村 勇介

Advanced Driver Information Technology

Software Group (SWG)

Engineer

Tel: 0566-61-5117(ext:551-43641)

Fax:0566-25-4774

Email:ynakam...@jp.adit-jv.com  

 

 

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