On Tue, Jan 28, 2020 at 2:47 AM Daniel Wagner <wagi@monom.org> wrote:
Hi Torsten,

On Mon, Jan 27, 2020 at 09:35:49PM -0500, Torsten Wörtwein wrote:
> On Mon, Jan 27, 2020 at 12:20 PM Daniel Wagner <wagi@monom.org> wrote:
> > What does connman -n -d plugins/wifi.c say about the SSIDs and the
> > found frequencis? ConnMan has to tell wpa_supplicant which SSID and
> > frequency to connect to. Though even if that is not wrong decision,
> > wpa_supplicant should then automatically roam to the strongest signal.
> >
> It seems to list only one frequency - only the lines containing the
> router's/repeater's SSID:
> connmand[895]: plugins/wifi.c:get_latest_connections() ssid
> 726976656e64656c6c freq 5240 modified 1580175624
> connmand[895]: plugins/wifi.c:add_scan_param() SSID 726976656e64656c6c
> added to scanned list of 1 entries
> connmand[895]: plugins/wifi.c:network_added() 726976656e64656c6c_managed_psk
> connmand[895]: plugins/wifi.c:network_added() 726976656e64656c6c_managed_psk
> The router uses 2412/5240/5825 (5825 is from 'ASUS Smart Connect') and the
> repeater uses 2417/5500. I was much closer to the repeater than to the
> router when running "connmand -n -d plugins/wifi.c".

One thing you could try for a workaround is to change the frequency
stored in the settings file. First stop ConnMan (because it will
overwrite those files). Go to
/var/lib/connman/wifi_xxxxxxx_726976656e64656c6c_managed_psk and edit
the settings file. There should be a Frequency entry with 5240. What
happens if you change this to 5500?

Thanks Daniel! Unfortunately, connman changes it automatically back to the router lower 5Ghz wifi (5240).
Interestingly, the output of "connmand -n -d plugins/wifi.c" changed. It reports the repeaters 5Ghz wifi, which I manually entered:

connmand[43097]: plugins/wifi.c:get_latest_connections() ssid 726976656e64656c6c freq 5500 modified 1580261980
But it still ends up using 5240 (and changes the settings file back to 5240).

> I also noticed, that not all SSIDs might have been listed:
> connmand[895]: plugins/wifi.c:wifi_scan() max ssids 16
> connmand[895]: plugins/wifi.c:add_scan_param() SSID
> 5265736964656e6365496e6e5f4755455354 added to scanned list of 15 entries

wpa_supplicant exposes a lot of networking details and the wifi plugin
in ConnMan has to do a lot of work. And I am not surprised this
doesn't work as expected.

Anyway, try the workaround to see if we are going into the right