On Tue, Oct 29, 2019 at 07:29:08PM +1100, JH wrote:
I installed connman to a device which connects to home WiFi modem.
There could be two ways to configure WiFi modem connection:
(1) Set up a wifi.config with WiFi modem Name and Passphrase
(currently working on my device)
(2) Press WiFi modem WPS button in 3 seconds to allow WiFi device
(client) automatically set up configuration to connect to WiFi modem.
Is there an option in connman configuration to support to connect to
the WiFi network automatically by pushing WiFi modem WPS button?
Yes, WPS is supported. IIRC, you need to have an agent running for this
see doc/agent-api.txt (RequestPeerAuthorization) and test/simple-agent
for an example how to use it. IIRC you need to check that
wpa_supplicant also supports it.