Re: connecting to an open wifi network with wps push button
Hi James, I don't think it's exactly the same thing, please correct me if I am wrong. The WPS PBC can be initiated by either the AP or the device. It does not need to be started on the AP side. If you cannot initiate the button press without first selecting a service to connect to, there is no way to start the WPS sequence from device side because you have already chosen which AP you want to connect to. You must be able to have the device advertising the WPS PBC before you select the AP to connect to. That way the AP can see the advertisements. wpa_supplicant / wpa_cli allow the button to be pressed before choosing the network to connect to. We support AP to client. Not the other way. We want to ensure the user connects to the service he really wants. So he first has to press the button on the AP and only then to select the proper service on his side. Misused, WPS can let the user being connected to the wrong network. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: connecting to an open wifi network with wps push button
Thanks for the clarification. It sounds like there is no way to pass WFA WPS certification with the current connman code base, since this behavior makes it impossible to connect to an open network via WPS. Honestly, it doesn't make a lot of sense to use WPS on an open network if you can display a list of networks for the user to choose from. It makes a lot of sense for a headless unit, where the only way to connect is by WPS push button. Do you have recommendations for how to modify connman to support a scenario where the button can be pushed before selecting a network to connect to? And a level of effort required? Thanks! On Thu, Jul 16, 2015 at 12:24 AM, Tomasz Bursztyka tomasz.burszt...@linux.intel.com wrote: Hi James, I don't think it's exactly the same thing, please correct me if I am wrong. The WPS PBC can be initiated by either the AP or the device. It does not need to be started on the AP side. If you cannot initiate the button press without first selecting a service to connect to, there is no way to start the WPS sequence from device side because you have already chosen which AP you want to connect to. You must be able to have the device advertising the WPS PBC before you select the AP to connect to. That way the AP can see the advertisements. wpa_supplicant / wpa_cli allow the button to be pressed before choosing the network to connect to. We support AP to client. Not the other way. We want to ensure the user connects to the service he really wants. So he first has to press the button on the AP and only then to select the proper service on his side. Misused, WPS can let the user being connected to the wrong network. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman -- *James Zipperer* Software Engineer Synapse Product Development mail 1511 6th Ave Suite 400, Seattle, WA 98101 direct 206-832-1269,3614 | office 206-381-0898 | mobile 206-399-6228 james.zippe...@synapse.com | http://www.synapse.com This email and any files transmitted with it are confidential. Unauthorized publication, use or dissemination of this email is prohibited. Please consider the environment before printing. ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: connecting to an open wifi network with wps push button
Hi James, Thanks for the clarification. It sounds like there is no way to pass WFA WPS certification with the current connman code base, since this behavior makes it impossible to connect to an open network via WPS. Honestly, it doesn't make a lot of sense to use WPS on an open network if you can display a list of networks for the user to choose from. It makes a lot of sense for a headless unit, where the only way to connect is by WPS push button. Indeed, but that's a certification: it's not meant to make sense :) Do you have recommendations for how to modify connman to support a scenario where the button can be pushed before selecting a network to connect to? And a level of effort required? There would be 2 ways: 1) if you have a physical wps pbc button on your device, this can be tight to wpa_supplicant (how? I don't know. Could be an event directly handled form the wifi chip, or a gpio event?). Anyway, the remaining work would be to make connman following wpa_supplicant's decision on the following connection once WPS ran successfully. Afaik, wpa_supplicant's DBus API should tell that wps is running. Once it connects, I believe it also tells about it. So you would need to verify first such behavior and see if ConnMan follows (run connman lime: CONNMAN_SUPPLICANT_DEBUG=1 connmand -nd for the proper logs) If it just works, then fine. If not, it would probably require some work on plugins/wifi.c probably not much. A 1 man week of work at most? 2) You add an function to ConnMan's DBus API to run such WPS PBC. So this would create a pure software button. However, since it again does not get along with the usual connecton procedure you would have a bit more work than 1) here as you would need to call wpa_supplicant's wps process to start (so you probably need to make the right interface function in gsupplicant's part) and then again to handle the results properly as in 1). However, form design point of view, you'll have a hard time to make it clean, since ConnMan's DBus API has its logic: I guess the easiest way is to add such feature through technology.c, on wifi only. In any case, 1) is by far the best option here. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: connecting to an open wifi network with wps push button
Hi, Is there any way to accomplish using connman? I don't see a way to send a WPS push button without first connecting to a service and having the user agent request the WPS pin or push button. That's the software WPS push button you want. There is no other way. When the user physically press a real button: it means he wants to connect. So here, that's exactly the same thing: he needs first to request a connection and then connman (since it detects the service as WPS ready) asks you about which method you want to use. Note that WPS is usually badly implemented in AP side. So depending on those, you may see connman no requesting you the method through the agent if the AP does its job well, i.e.: advertizing properly it's running a WPS PBC sequence. (thus connman detects it, and then do not ask the user about the method and uses PBC automatically) Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: connecting to an open wifi network with wps push button
I don't think it's exactly the same thing, please correct me if I am wrong. The WPS PBC can be initiated by either the AP or the device. It does not need to be started on the AP side. If you cannot initiate the button press without first selecting a service to connect to, there is no way to start the WPS sequence from device side because you have already chosen which AP you want to connect to. You must be able to have the device advertising the WPS PBC before you select the AP to connect to. That way the AP can see the advertisements. wpa_supplicant / wpa_cli allow the button to be pressed before choosing the network to connect to. Thanks! On Tue, Jul 14, 2015 at 11:52 PM, Tomasz Bursztyka tomasz.burszt...@linux.intel.com wrote: Hi, Is there any way to accomplish using connman? I don't see a way to send a WPS push button without first connecting to a service and having the user agent request the WPS pin or push button. That's the software WPS push button you want. There is no other way. When the user physically press a real button: it means he wants to connect. So here, that's exactly the same thing: he needs first to request a connection and then connman (since it detects the service as WPS ready) asks you about which method you want to use. Note that WPS is usually badly implemented in AP side. So depending on those, you may see connman no requesting you the method through the agent if the AP does its job well, i.e.: advertizing properly it's running a WPS PBC sequence. (thus connman detects it, and then do not ask the user about the method and uses PBC automatically) Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman -- *James Zipperer* Software Engineer Synapse Product Development mail 1511 6th Ave Suite 400, Seattle, WA 98101 direct 206-832-1269,3614 | office 206-381-0898 | mobile 206-399-6228 james.zippe...@synapse.com | http://www.synapse.com This email and any files transmitted with it are confidential. Unauthorized publication, use or dissemination of this email is prohibited. Please consider the environment before printing. ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman