On 5/19/21 2:36 PM, KeithG wrote:
I am not sure if this is the right terminology but this is what I am
trying to do:
Power up a headless device. If it does not get an ethernet or wifi
connection, it launches AP mode of some sort and allows a device to
connect then configure the wifi connection by selecting an AP and
typing in a password.
This works with hostapd/dsnmasq, currently. I want to switch over to
connman and/or iwd to do this, but have not been successful in doing
So do you know how this works, exactly?
If I set up connman by:
"# connmanctl tether wifi on SSID password" I can connect and 'see' my
new SSID, but I cannot scan for any APs to set up. I do not know how
to set the SSID IP address, if this has been enabled in connman.
Daniel or Marcel can correct me if I'm wrong, but I don't think this is a
usecase connman supports. Tethering is just that, sharing your
ethernet/wwan/whatever connection over wifi.
I have tried with iwctl as well:
set up /etc/iwd/main.conf
# iwctl device wlan0 set-property Mode ap
# iwctl ap wlan0 start SSID password
With this I can connect, but once again, I cannot scan for any
available SSIDs to connect to. It is not important that I be able to
connect, but I do need to see the SSIDs so the user can set it up then
reboot (or restart connman/iwd) to connect to the new 'known' SSID.
So I think there are two ways of doing this:
1. Being able to scan while in AP mode. This is something that has been brought
up before as desirable, etc. But no one has made any contributions just yet.
All this does is lets you see the surrounding SSIDs...
2. Use multiple interfaces if your hw supports them. So 1 interface in AP mode,
the other in station mode. Then you could connect to the headless device on the
ap interface and run iwd on the station interface as usual to set up the network.
In theory 2 can be done today, either by iwd or combo iwd/hostapd with some