On Wed, Jan 29, 2020 at 06:04:07PM -0500, Torsten Wörtwein wrote:
I started IWD with
sudo /usr/lib/iwd/iwd -d
it then 'magically' (without connman) connected to the wifi - I assume it
reads connman's settings for that.
iwd doesn't know about ConnMan's setting files. Are you sure ConnMan
was not running in the background? I don't see how else iwd figured
out the network settings. I assume you have a WPA2 enabled.
IWD found all five wifis:
src/station.c:station_add_seen_bss() Processing BSS '04:d9:f5:26:4f:69'
with SSID: rivendell, freq: 5825, rank: 5932, strength: -6400
src/station.c:station_add_seen_bss() Processing BSS 'fa:1a:67:32:fa:1f'
with SSID: rivendell, freq: 2417, rank: 4707, strength: -3900
src/station.c:station_add_seen_bss() Processing BSS 'fa:1a:67:32:fa:20'
with SSID: rivendell, freq: 5500, rank: 4321, strength: -4400
src/station.c:station_add_seen_bss() Processing BSS '04:d9:f5:26:4f:61'
with SSID: rivendell, freq: 2427, rank: 4306, strength: -5500
src/station.c:station_add_seen_bss() Processing BSS '04:d9:f5:26:4f:65'
with SSID: rivendell, freq: 5240, rank: 2999, strength: -7000
src/station.c:station_autoconnect_next() Considering autoconnecting to BSS
'04:d9:f5:26:4f:69' with SSID: rivendell, freq: 5825, rank: 5932, strength:
5500 and 2417 should be the repeater, to which I was closer at the moment.
But it decided to connect to the router's high 5Ghz network.
If you are interested to see what's going on between iwd and the kernel
driver you can start the excellent iwmon by the iwd project.
And then started connmand:
sudo connmand -n -d plugins/iwd.c --wifi=iwd_agent
'--wifi=iwd_agent' doesn't really make anything. The '--wifi' option
is there to switch between the two APIs which wpa_supplicant
supports. So either nl80211 or WEXT. It doesn't do anything for the
** (connmand:1923): WARNING **: 17:38:47.484: error
The wifi plugin should not run. That means wpa_supplicant might run in
the background. Shutdown wpa_supplicant and block it from auto
start. systemd might do something in the background.
Furthermore, you should propably disable the wifi plugin at boot up or
just don't enable it during build time.
wpa_supplicant and iwd should never run at the same time.
It didn't print any frequency information.
IWD seems to occasionally roam between the wifis :) For a brief period it
picked 2417. Overall it highly prefers 5825 even if that is the farthest
one away (to be fair, it worked - I didn't encounter connection issues).
Alright, this is sounds promising. Anyway, if you find anything not
working with iwd I am sure we get things sorted out as the iwd
developers are interested to get things fixed.
And from my point of view, I am interested to get things fixed in
ConnMan for iwd.
For wpa_supplicant, I don't want to invest more of my personal
time. Obviously, if someones sends fixes I am glad to except them. But
personally I wont to implement or fix bugs on it except minimal