RE: Does ConnMan suport to cotrol two wifi devices?

2015-06-10 Thread Nakamura, Yusuke (ADITJ/SWG)
Hi Abhijit

Thank you for your reply.

Are you using two different wireless cards like one built-in one and another 
dongle or something else ??
I'm using two different wireless cards. two wifi dongle.

Can you designate which device to be used as AP?

Best Regards,

 -Original Message-
 From: connman [mailto:connman-boun...@connman.net] On Behalf Of Lamsoge,
 Abhijit
 Sent: Tuesday, June 09, 2015 10:17 PM
 To: connman@connman.net
 Cc: Ishikawa, Tetsuri (ADITJ/SWG)
 Subject: RE: Does ConnMan suport to cotrol two wifi devices?
 
 Hi Yusuke,
 What hardware are you using ?
 Are you using two different wireless cards like one built-in one and another
 dongle or something else ??
 
 Connman does support AP and STA mode simultaneously  but it strictly needs
 two different wifi chips or hardware.
 By creating a virtual wlan interface and trying the same functionality did
 not work for me, if only one chip is present - and did not dig in much deeper.
 
 Abhijit
 
 From: connman [connman-boun...@connman.net] on behalf of Nakamura, Yusuke
 (ADITJ/SWG) [ynakam...@jp.adit-jv.com]
 Sent: Tuesday, June 09, 2015 5:00 PM
 To: connman@connman.net
 Cc: Ishikawa, Tetsuri (ADITJ/SWG)
 Subject: Does ConnMan suport to cotrol two wifi devices?
 
 Hi all
 
 I'm using ConnMan with wpa_supplicant which uses wlan0 and wlan1.
 One is used for wifi STA and the other is used for AP mode.
 I'd like to control two wifi devices via ConnMan but does ConnMan support
 to control two devices officially?
 As far as I tried, it seems to be working.
 
 Best Regards
 ___
 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
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Does ConnMan suport to cotrol two wifi devices?

2015-06-09 Thread Nakamura, Yusuke (ADITJ/SWG)
Hi all

I'm using ConnMan with wpa_supplicant which uses wlan0 and wlan1.
One is used for wifi STA and the other is used for AP mode.
I'd like to control two wifi devices via ConnMan but does ConnMan support to 
control two devices officially?
As far as I tried, it seems to be working.

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


[PATCH] gsupplicant: add a callback after WPS start gets called

2015-04-27 Thread Nakamura, Yusuke (ADITJ/SWG)
When WPS is used to connect a network, connect_callback should get called.
Before this change connect_callback was called only after non-WPS connection.
If WPS is used repeatedly, refcount continues increasing because this callback 
is not called.
This causes that a network is not released properly.
---
 gsupplicant/supplicant.c | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index cd91f95..ab50295 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -4507,10 +4507,18 @@ static void interface_wps_start_result(const char 
*error,
DBusMessageIter *iter, void *user_data)
 {
struct interface_connect_data *data = user_data;
+   int err;
 
SUPPLICANT_DBG();
-   if (error)
+
+   err = 0;
+   if (error) {
SUPPLICANT_DBG(error: %s, error);
+   err = parse_supplicant_error(iter);
+   }
+
+   if(data-callback)
+   data-callback(err, data-interface, data-user_data);
 
g_free(data-path);
g_free(data-ssid);
-- 
1.9.1
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


RE: would it be possible some of technologies get online state simultaneously?

2015-01-19 Thread Nakamura, Yusuke (ADITJ/SWG)
Hi Patrik

Thank you very much for your reply.

That is doable. With the Session API and its usage of session specific routing 
tables, all session routing tables have the default route set.
The default routing table is the only one that has exactly one default route 
set, this in order not to change the normal behavior if sessions are created.

Sorry Patrik. I didn't understand what this means. Do you mind explaining this 
in more detail?

 The 'online' state indicates that proxies are either not needed or
 configured correctly for pacrunner,
 http://git.kernel.org/cgit/network/connman/pacrunner.git/ Pacrunner
 support is found in Fedora's libproxy package so that all applications using
 libproxy will get the correct proxies and can connect successfully to
 Internet.
 
 But back to your original question, internet is reachable for the WiFi user
 also in state 'ready'.

The problem here is wifi_user can't know the 'ready' status when the status 
gets 'ready'.
I suppose Connman notifies only online/offline status. Therefore wifi_user 
can't receive 'ready' notification from Connman. 
Session_policy_local plugin doesn't set a route(ip route) when the status is 
'ready'.
So in this case wifi_user can use ethernet.

I'd like ethernet_user to use only ethernet and wifi_user to use only wifi.

Could you tell me  my misunderstanding if any.

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: Kojima, Tsuyoshi (HISOL; ADITJ/SWG)
 Sent: Monday, January 19, 2015 2:54 PM
 To: Nakamura, Yusuke (ADITJ/SWG)
 Subject: RE: would it be possible some of technologies get online state
 simultaneously?
 
 日本語で返事書いてみました。
 
 -Original Message-
 From: connman [mailto:connman-boun...@connman.net] On Behalf Of Patrik
 Flykt
 Sent: Friday, January 16, 2015 5:18 PM
 To: connman@connman.net
 Cc: Ishikawa, Tetsuri (ADITJ/SWG)
 Subject: Re: would it be possible some of technologies get online state
 simultaneously?
 
 
   Hi,
 
 On Fri, 2015-01-16 at 15:08 +0900, Nakamura, Yusuke (ADITJ/SWG) wrote:
 
  I’m trying to use ConnMan to take care of network arbitration for my
  automotive embedded system.
 
 Cool!
 
  Now the question is whether some of technologies get “online”
  simultaneously.
 
 Only one of the services can be 'online' at any one time. This applies both
 for Session and Service APIs.
 
  I’d like to configure available bearers per application (per user) by
  using session_policy_local_plugin.
 
  For instance while “etherner_user” is connecting to the internet via
  Ethernet, “wifi_user” is connecting to the internet via WiFi.
 
 That is doable. With the Session API and its usage of session specific
 routing tables, all session routing tables have the default route set.
 The default routing table is the only one that has exactly one default route
 set, this in order not to change the normal behavior if sessions are created.
 
  ちょっと何言ってるかわからないです。
 
  I think wifi_user’s session does not get online even if wifi internet
  connection gets available.
 
  I suppose that is because “ethernet” is preferred technology.
 
 Actually, if ethernet is online, it means the connectivity check succeeded.
 Ethernet could also have stayed as 'ready', should the connectivity check
 have failed.
 
  “wifi_user” can’t receive notification through session.
  session_policy_local_plugin configure ip route when get “online”.
 
  Therefore I think in above case “wifi_user” can’t connect to the
  internet.
 
 State 'ready' is enough to be connected to the internet. The difference
 here is that 'online' provides a bit more information, it indicates that
 the additional connectivity check to {ipv4,ipv6}.connman.net succeeded.
 
 The 'online' state indicates that proxies are either not needed or
 configured correctly for pacrunner,
 http://git.kernel.org/cgit/network/connman/pacrunner.git/ Pacrunner
 support is found in Fedora's libproxy package so that all applications using
 libproxy will get the correct proxies and can connect successfully to
 Internet.
 
 But back to your original question, internet is reachable for the WiFi user
 also in state 'ready'.
 
  それはわかっています。問題は、stateがreadyでstayしたとき、wifi_user
 がreadyステータスを知ることができないという事です。
 また、session_policy_local pluginはreadyステータスではルートの設定(ip
 route)をしないので、wifi_userはethernetを使用できてしまいます。
 Ethernet_userにはethernetのみを、wifi_userにはwifiのみを使用させたい
 のです。
 
 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

would it be possible some of technologies get online state simultaneously?

2015-01-15 Thread Nakamura, Yusuke (ADITJ/SWG)
Hello all

 

I’m trying to use ConnMan to take care of network arbitration for my automotive 
embedded system.

I had a question regarding session. 

Now the question is whether some of technologies get “online” simultaneously.

 

I’d like to configure available bearers per application (per user) by using 
session_policy_local_plugin.

For instance while “etherner_user” is connecting to the internet via Ethernet, 
“wifi_user” is connecting to the internet via WiFi.

I’m expecting a usecase like this.

 

I think wifi_user’s session does not get online even if wifi internet 
connection gets available.

I suppose that is because “ethernet” is preferred technology.

“wifi_user” can’t receive notification through session. 
session_policy_local_plugin configure ip route when get “online”. 

Therefore I think in above case “wifi_user” can’t connect to the internet.

 

Is my understanding correct?

If so, how can I realize above usecase?

 

 

Here are settings and logs for connmanctl.

 

# less /var/lib/connman/session_policy_local/ethernet_user.policy

[policy_ethernet_user]

uid = ethernet_user

AllowedBearers = ethernet

RoamingPolicy = forbidden

 

# less /var/lib/connman/session_policy_local/wifi_user.policy

[policy_wifi_user]

uid = wifi_user

AllowedBearers = wifi

RoamingPolicy = forbidden

 

ethernet_user$ connmanctl

connmanctl services

*AO Wiredethernet_0800272156c9_cable

*A  Wiredethernet_080027243b60_cable

connmanctl session on

Session /sessions/_1_92/net/connman/connmanctl3008 created

Session  Update   = {

State = online

Name = Wired

IPv4 = [ Method=dhcp, Address=10.71.112.171, Netmask=255.255.255.0, 
Gateway=10.71.112.254 ]

IPv6 = [  ]

Interface = eth0

Bearer = ethernet

ConnectionType = internet

AllowedBearers = [ ethernet ]

}

Session /sessions/_1_92/net/connman/connmanctl3008 connected

connmanctl 

 

 

 

wifi_user$ connmanctl

connmanctl services

*AO Wiredethernet_0800272156c9_cable

*A  Wiredethernet_080027243b60_cable

*A  WiFi wifi_003a9daaf132_57694669_managed_psk

connmanctl session on

Session /sessions/_1_94/net/connman/connmanctl3073 created

Session  Update   = {

State = disconnected

Name = 

IPv4 = [  ]

IPv6 = [  ]

Interface = 

Bearer = 

ConnectionType = internet

AllowedBearers = [ wifi ]

}

connmanctl session connect

connmanctl services

*AO Wiredethernet_0800272156c9_cable

*AR WiFi wifi_003a9daaf132_57694669_managed_psk

*A  Wiredethernet_080027243b60_cable

connmanctl

 

It would be extremely helpful if I could receive some advice about this matter

 

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 mailto:ynakam...@jp.adit-jv.com 

 

 

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


question about wps pbc with any option

2014-12-18 Thread Nakamura, Yusuke (ADITJ/SWG)
Hi All,

 

I’m trying to connect to AP with wps pbc using connmanctl.

I think when connecting to AP, we need to specify a service like “connect 
wifi_0123**”.

Would it be possible to connect to AP without specifying service, just like 
“wps_pbc any” of “wpa_cli” ? 

 

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 mailto:ynakam...@jp.adit-jv.com 

 

 

___
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


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 mailto:ynakam...@jp.adit-jv.com 

 

 

___
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