Send connman mailing list submissions to
        connman@lists.01.org

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        connman-requ...@lists.01.org

You can reach the person managing the list at
        connman-ow...@lists.01.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."

Today's Topics:

   1. Re: connman iwd reconnect problems (KeithG)


----------------------------------------------------------------------

Date: Wed, 27 Jan 2021 09:49:51 -0600
From: KeithG <ys3al...@gmail.com>
Subject: Re: connman iwd reconnect problems
To: Daniel Wagner <w...@monom.org>
Cc: connman@lists.01.org
Message-ID:
        <CAG17S_P-mit9cgo==zFE5dc3jb58-qjA4Hd_3ho1UeaCtF2M=a...@mail.gmail.com>
Content-Type: multipart/alternative;
        boundary="0000000000005df51a05b9e3b92e"

--0000000000005df51a05b9e3b92e
Content-Type: text/plain; charset="UTF-8"

Success!

I cannot tell if it was a patch for connman or if it was iwd, but between
connman r74.gf3726863 and r76.g32cb7546 and iwd 1.10 to iwd 1.11 something
happened and connman will now re-connect on the RPi (brcmfmac) if the radio
is restarted or the router is rebooted.Cautiously optimistic, but tested
last night with armv6 and aarch64 and both reconnected. It did not 'feel'
as fast as iwd, but <2 minutes from disconnect to reconnect on 5Ghz radio
is quite acceptable, IMO.Previously it would just scan and scan and never
seemed to connect to the known-network.

This means that, with the next full release of connman (1.39), the
connman/iwd pair works quite well with the RPis with onboard wifi (Zero,
B3, B3+, B4) to manage the wired and wireless interfaces. AP mode will not
work due to the brcmfmac driver not being able to navigate the iwd AP mode
messaging, but I am guessing that will not be fixed in the broadcom/cypress
driver. Same for WPA3-SAE as it is also not in the driver.

Thanks!

Keith

On Sun, Jan 17, 2021 at 7:00 PM KeithG <ys3al...@gmail.com> wrote:

> On Tue, Jan 12, 2021 at 7:19 PM KeithG <ys3al...@gmail.com> wrote:
>
>> On Tue, Jan 12, 2021 at 2:31 AM Daniel Wagner <w...@monom.org> wrote:
>>
>>>  Sun, Jan 03, 2021 at 04:36:36PM -0600, KeithG wrote:
>>> > I have been busy with other things for a while and have recently built
>>> > connman with the latest from git (connman-git 1.38.r74.gf3726863) and
>>> > decided to test again. It does not reconnect when the radio goes down.
>>> If I
>>> > reboot the router, it does reconnect (mostly). So there must be
>>> something a
>>> > bit different between the 2 states.
>>>
>>> Which was the previous version you tested against?
>>>
>>> Daniel
>>>
>> Daniel,
>>
>> The previous version was 1.38.r65.g40947be3. I fear that the test may
>> have been flawed as I had the 'background scan' set in main.conf and also
>> had wpa_supplicant installed. I apologize for the confusion, but with all
>> the dev work, I kind of got my wires crossed a bit. When I went back and
>> tested again with wpa_supplicant removed, I noticed that it did not want to
>> reconnect. Neither with ipv6 nor ipv4. So, I built the latest from git,
>> tried again and noticed similar behavior to what I saw before.
>>
>> What I 'think' I see in the logs is that the SSID goes away and it clears
>> the IP addresses and starts scanning. 'scanning 1 ... scanning 0' but it
>> never sees the 'known network'. If I take the interface down then back up,
>> it reconnects. I am not great at this, but when I look through the log, it
>> acts differently when the interface is brought up than when it has been
>> disconnected then starts scanning again. If I restart the radio on the
>> router, I get this:
>>
>> plugins/iwd.c:network_property_change() /net/connman/iwd/0/3/73706733_psk
>> connected 0
>>
>> then it disconnects and deletes the routes and addresses. Then it
>> continues scanning but only periodically reports that it has found an SSID
>> and for whatever reason never sees my SSID and from scanning 1 to scanning
>> 0 it usually only 'sees' one SSID at a time if at all and for whatever
>> reason, it never 'sees' the autoconnect qSSID.
>>
>> Jan 12 18:37:24 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:37:28 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network
>> /net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk
>> Jan 12 18:37:28 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>> Jan 12 18:37:28 rune64 connmand[262]: plugins/iwd.c:ordered_networks_cb()
>> Jan 12 18:37:28 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:37:32 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>> Jan 12 18:37:32 rune64 connmand[262]: plugins/iwd.c:ordered_networks_cb()
>> Jan 12 18:37:32 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:37:36 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>> Jan 12 18:37:36 rune64 connmand[262]: plugins/iwd.c:ordered_networks_cb()
>> Jan 12 18:37:36 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:37:40 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>> Jan 12 18:37:40 rune64 connmand[262]: plugins/iwd.c:ordered_networks_cb()
>> Jan 12 18:37:40 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:37:44 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/486f757365537461726b3031_psk
>> Jan 12 18:37:44 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>> Jan 12 18:37:44 rune64 connmand[262]: plugins/iwd.c:ordered_networks_cb()
>> Jan 12 18:37:44 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:37:48 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network
>> /net/connman/iwd/0/3/53756c6c6976616e2046616d696c79_psk
>> Jan 12 18:37:48 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>>
>> If I take the network down, it removes all the traces of scanned SSIDS:
>>
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {RX} 14872 packets 19669052
>> bytes
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {TX} 8253 packets 809028 bytes
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {update} flags 4098 <DOWN>
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {newlink} index 3 address
>> B8:27:EB:xx;xx:xx mtu 1500
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {newlink} index 3 operstate 2
>> <DOWN>
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Station /net/connman/iwd/0/3
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.SimpleConfiguration /net/connman/iwd/0/3
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4c6f6164696e672e2e2e_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/456476656e7475726573_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4e4554474541523938_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/73706733_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4d65617374657761_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network
>> /net/connman/iwd/0/3/53756c6c6976616e2046616d696c79_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4e45544745415236332d3547_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/456476656e747572657333_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4368696d652d366139366161_open
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/73706732_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/415454785a4951347761_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/56697275735f3547_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/456c4a656665_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/486f757365537461726b3031_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/41545458495849537069_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/5669727573_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network
>> /net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/415454654865544b4932_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4e4554474541523633_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/48414e4e41_psk
>> Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()
>> net.connman.iwd.Network /net/connman/iwd/0/3/48414e4e4135_psk
>>
>> and when the interface comes back, it scans and sees more than one
>> network between 'scanning 1' to 'scanning 0' and it 'sees' the saved
>> interface and connects:
>>
>> *Jan 12 18:45:08 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1*
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {RX} 14872 packets 19669052
>> bytes
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {TX} 8253 packets 809028 bytes
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {update} flags 4099 <UP>
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {newlink} index 3 address
>> B8:27:EB:52:CC:D0 mtu 1500
>> Jan 12 18:45:08 rune64 connmand[262]: wlan0 {newlink} index 3 operstate 2
>> <DOWN>
>> *Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/73706733_psk*
>> *Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'spg3' type psk connected 1 known_network
>> /net/connman/iwd/73706733_psk*
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 1
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:update_auto_connect()
>> auto_connect 1 autoconnect 1
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/73706732_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'spg2' type psk connected 0 known_network
>> (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/41545458495849537069_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'ATTXIXISpi' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/456476656e747572657333_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Edventures3' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/5669727573_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Virus' type psk connected 0 known_network
>> (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/456476656e7475726573_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Edventures' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4e4554474541523633_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'NETGEAR63' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/48414e4e41_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'HANNA' type psk connected 0 known_network
>> (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4c6f6164696e672e2e2e_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Loading...' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/456c4a656665_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'ElJefe' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network
>> /net/connman/iwd/0/3/53756c6c6976616e2046616d696c79_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Sullivan Family' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4e45544745415236332d3547_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'NETGEAR63-5G' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/415454654865544b4932_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'ATTeHeTKI2' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/486f757365537461726b3031_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'HouseStark01' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/415454785a4951347761_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'ATTxZIQ4wa' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network
>> /net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'MOTOROLA-FE0D1' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/56697275735f3547_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Virus_5G' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4d65617374657761_psk
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Meastewa' type psk connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added()
>> net.connman.iwd.Network /net/connman/iwd/0/3/4368696d652d366139366161_open
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network()
>> device /net/connman/iwd/0/3 name 'Chime-6a96aa' type open connected 0
>> known_network (null)
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0
>> *Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0*
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 state
>> connecting
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3
>> connected_network /net/connman/iwd/0/3/73706733_psk
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:network_property_change() /net/connman/iwd/0/3/73706733_psk
>> connected 1
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:update_network_connected() interface name wlan0 index 3
>> Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:ordered_networks_cb()
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {RX} 14873 packets 19669151
>> bytes
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {TX} 8253 packets 809028 bytes
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {update} flags 69635
>> <UP,LOWER_UP>
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {newlink} index 3 address
>> B8:27:EB:xx:x:xx mtu 1500
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {newlink} index 3 operstate 5
>> <DORMANT>
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {add} route fe80:: gw ::
>> scope 0 <UNIVERSE>
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {RX} 14874 packets 19669306
>> bytes
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {TX} 8256 packets 809438 bytes
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {update} flags 69699
>> <UP,RUNNING,LOWER_UP>
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {newlink} index 3 address
>> B8:27:EB:xx:xx:xx mtu 1500
>> Jan 12 18:45:09 rune64 connmand[262]: wlan0 {newlink} index 3 operstate 6
>> <UP>
>> Jan 12 18:45:09 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 state connected
>> Jan 12 18:45:10 rune64 connmand[262]: wlan0 {add} route
>> 2600:1700:4320:6caf:: gw :: scope 0 <UNIVERSE>
>> Jan 12 18:45:10 rune64 connmand[262]: wlan0 {add} route fd21:98c8:1d28::
>> gw :: scope 0 <UNIVERSE>
>> Jan 12 18:45:11 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>> Jan 12 18:45:11 rune64 connmand[262]: wlan0 {add} address
>> 2600:1700:4320:6caf:baxx:xxff:fexx:xxxx/64 label (null) family 10
>> Jan 12 18:45:12 rune64 connmand[262]: wlan0 {add} address
>> fd21:98c8:1d28:0:ba27:ebff:fexx:xxxx/64 label (null) family 10
>> Jan 12 18:45:15 rune64 connmand[262]:
>> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 0
>>
>> It immediately connects. Between 'scanning 1' and 'scanning 0' it gets
>> all available networks. This is one thing I see as 'different' from taking
>> an interface down then up versus restarting the SSID on the router. When it
>> is connected, it works similarly in that it gets one network at a time
>>
>> On the IWD side, the /var/lib/iwd/spg.psk has 'AutoConnect=true' set in
>> it, now.
>>
>> Hope this is helpful.
>>
>> Regards,
>>
>> Keith
>>
>>
> Daniel,
>
> Looking at this a bit more. I notice if I let iwd manage the connection by
> itself (/etc/iwd/main.conf with "EnableNetworkConfiguration=true" and
> disable connman), it reconnects no matter what. Reboot the router or just
> restart the SSID. When I let connman manage it, a reboot will sometimes
> reconnect. A radio restart on the router will never reconnect. The attached
> log shows the connman and the iwd reports in the journal. I rebooted the
> router at 17:16 and it reconnected. I restarted the radio at 17:24 and it
> did not reconnect. iwd reports that the SSID I want "spg3" is up and had a
> pretty good strength, but it does not initiate a connection.
> Example:
> Jan 17 17:26:17 rune64 iwd[263]: src/station.c:station_add_seen_bss()
> Processing BSS '08:02:8e:94:12:97' with SSID: spg3, freq: 5180, rank:
> 14588, strength: -5300
>
> So after a bit of this I take the interface down then back up at 17:27:16
> and it immediately reconnects.
>
> The interesting bit is that IWD records that it 'sees' my SSID but connman
> does not actually connect to it:
>
> Hope this is helpful.
>
> Keith
>
>
>

--0000000000005df51a05b9e3b92e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Success!</div><div><br></div><div>I cannot tell if it=
 was a patch for connman or if it was iwd, but between connman r74.gf372686=
3 and r76.g32cb7546 and iwd 1.10 to iwd 1.11 something happened and connman=
 will now re-connect on the RPi (brcmfmac) if the radio is restarted or the=
 router is rebooted.Cautiously optimistic, but tested last night with armv6=
 and aarch64 and both reconnected. It did not &#39;feel&#39; as fast as iwd=
, but &lt;2 minutes from disconnect to reconnect on 5Ghz radio is quite acc=
eptable, IMO.Previously it would just scan and scan and never seemed to con=
nect to the known-network. <br></div><div><br></div><div>This means that, w=
ith the next full release of connman (1.39), the connman/iwd pair works qui=
te well with the RPis with onboard wifi (Zero, B3, B3+, B4) to manage the w=
ired and wireless interfaces. AP mode will not work due to the brcmfmac dri=
ver not being able to navigate the iwd AP mode messaging, but I am guessing=
 that will not be fixed in the broadcom/cypress driver. Same for WPA3-SAE a=
s it is also not in the driver. </div><div><br></div><div>Thanks!</div><div=
><br></div><div>Keith<br></div></div><br><div class=3D"gmail_quote"><div di=
r=3D"ltr" class=3D"gmail_attr">On Sun, Jan 17, 2021 at 7:00 PM KeithG &lt;<=
a href=3D"mailto:ys3al...@gmail.com";>ys3al...@gmail.com</a>&gt; wrote:<br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Tue, Jan 12, 2021 at 7:19 PM KeithG &=
lt;<a href=3D"mailto:ys3al...@gmail.com"; target=3D"_blank">ys3al35l@gmail.c=
om</a>&gt; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"=
gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20=
4,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"=
ltr" class=3D"gmail_attr">On Tue, Jan 12, 2021 at 2:31 AM Daniel Wagner &lt=
;<a href=3D"mailto:w...@monom.org"; target=3D"_blank">w...@monom.org</a>&gt;=
 wrote:<br></div></div><div class=3D"gmail_quote"><blockquote class=3D"gmai=
l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20=
4,204);padding-left:1ex">=C2=A0Sun, Jan 03, 2021 at 04:36:36PM -0600, Keith=
G wrote:<br>
&gt; I have been busy with other things for a while and have recently built=
<br>
&gt; connman with the latest from git (connman-git 1.38.r74.gf3726863) and<=
br>
&gt; decided to test again. It does not reconnect when the radio goes down.=
 If I<br>
&gt; reboot the router, it does reconnect (mostly). So there must be someth=
ing a<br>
&gt; bit different between the 2 states.<br>
<br>
Which was the previous version you tested against?<br>
<br>
Daniel<br></blockquote><div>
<div>Daniel,</div><div><br></div><div>The previous version was 1.38.r65.g40=
947be3. I fear that the test may have been flawed as I had the &#39;backgro=
und scan&#39; set in main.conf and also had wpa_supplicant installed. I apo=
logize for the confusion, but with all the dev work, I kind of got my wires=
 crossed a bit. When I went back and tested again with wpa_supplicant remov=
ed, I noticed that it did not want to reconnect. Neither with ipv6 nor ipv4=
. So, I built the latest from git, tried again and noticed similar behavior=
 to what I saw before. <br></div></div><div><br></div><div>What I &#39;thin=
k&#39; I see in the logs is that the SSID goes away and it clears the IP ad=
dresses and starts scanning. &#39;scanning 1 ... scanning 0&#39; but it nev=
er sees the &#39;known network&#39;. If I take the interface down then back=
 up, it reconnects. I am not great at this, but when I look through the log=
, it acts differently when the interface is brought up than when it has bee=
n disconnected then starts scanning again. If I restart the radio on the ro=
uter, I get this:</div><div><br></div><div>plugins/iwd.c:network_property_c=
hange() /net/connman/iwd/0/3/73706733_psk connected 0</div><div><br></div><=
div>then it disconnects and deletes the routes and addresses. Then it conti=
nues scanning but only periodically reports that it has found an SSID and f=
or whatever reason never sees my SSID and from scanning 1 to scanning 0 it =
usually only &#39;sees&#39; one SSID at a time if at all and for whatever r=
eason, it never &#39;sees&#39; the autoconnect qSSID. <br></div><div><br></=
div><div>Jan 12 18:37:24 rune64 connmand[262]: plugins/iwd.c:station_proper=
ty_change() /net/connman/iwd/0/3 scanning 1<br>Jan 12 18:37:28 rune64 connm=
and[262]: plugins/iwd.c:object_removed() net.connman.iwd.Network /net/connm=
an/iwd/0/3/4d4f544f524f4c412d4645304431_psk<br>Jan 12 18:37:28 rune64 connm=
and[262]: plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scan=
ning 0<br>Jan 12 18:37:28 rune64 connmand[262]: plugins/iwd.c:ordered_netwo=
rks_cb()<br>Jan 12 18:37:28 rune64 connmand[262]: plugins/iwd.c:station_pro=
perty_change() /net/connman/iwd/0/3 scanning 1<br>Jan 12 18:37:32 rune64 co=
nnmand[262]: plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 s=
canning 0<br>Jan 12 18:37:32 rune64 connmand[262]: plugins/iwd.c:ordered_ne=
tworks_cb()<br>Jan 12 18:37:32 rune64 connmand[262]: plugins/iwd.c:station_=
property_change() /net/connman/iwd/0/3 scanning 1<br>Jan 12 18:37:36 rune64=
 connmand[262]: plugins/iwd.c:station_property_change() /net/connman/iwd/0/=
3 scanning 0<br>Jan 12 18:37:36 rune64 connmand[262]: plugins/iwd.c:ordered=
_networks_cb()<br>Jan 12 18:37:36 rune64 connmand[262]: plugins/iwd.c:stati=
on_property_change() /net/connman/iwd/0/3 scanning 1<br>Jan 12 18:37:40 run=
e64 connmand[262]: plugins/iwd.c:station_property_change() /net/connman/iwd=
/0/3 scanning 0<br>Jan 12 18:37:40 rune64 connmand[262]: plugins/iwd.c:orde=
red_networks_cb()<br>Jan 12 18:37:40 rune64 connmand[262]: plugins/iwd.c:st=
ation_property_change() /net/connman/iwd/0/3 scanning 1<br>Jan 12 18:37:44 =
rune64 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Networ=
k /net/connman/iwd/0/3/486f757365537461726b3031_psk<br>Jan 12 18:37:44 rune=
64 connmand[262]: plugins/iwd.c:station_property_change() /net/connman/iwd/=
0/3 scanning 0<br>Jan 12 18:37:44 rune64 connmand[262]: plugins/iwd.c:order=
ed_networks_cb()<br>Jan 12 18:37:44 rune64 connmand[262]: plugins/iwd.c:sta=
tion_property_change() /net/connman/iwd/0/3 scanning 1<br>Jan 12 18:37:48 r=
une64 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Network=
 /net/connman/iwd/0/3/53756c6c6976616e2046616d696c79_psk<br>Jan 12 18:37:48=
 rune64 connmand[262]: plugins/iwd.c:station_property_change() /net/connman=
/iwd/0/3 scanning 0<br></div><div><br></div><div><div>If I take the network=
 down, it removes all the traces of scanned SSIDS:</div><div><br></div><div=
>Jan 12 18:45:08 rune64 connmand[262]: wlan0 {RX} 14872 packets 19669052 by=
tes<br>Jan 12 18:45:08 rune64 connmand[262]: wlan0 {TX} 8253 packets 809028=
 bytes<br>Jan 12 18:45:08 rune64 connmand[262]: wlan0 {update} flags 4098 &=
lt;DOWN&gt;<br>Jan 12 18:45:08 rune64 connmand[262]: wlan0 {newlink} index =
3 address B8:27:EB:xx;xx:xx mtu 1500<br>Jan 12 18:45:08 rune64 connmand[262=
]: wlan0 {newlink} index 3 operstate 2 &lt;DOWN&gt;<br>Jan 12 18:45:08 rune=
64 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Station /n=
et/connman/iwd/0/3<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:o=
bject_removed() net.connman.iwd.SimpleConfiguration /net/connman/iwd/0/3<br=
>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed() net.c=
onnman.iwd.Network /net/connman/iwd/0/3/4c6f6164696e672e2e2e_psk<br>Jan 12 =
18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed() net.connman.i=
wd.Network /net/connman/iwd/0/3/456476656e7475726573_psk<br>Jan 12 18:45:08=
 rune64 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Netwo=
rk /net/connman/iwd/0/3/4e4554474541523938_psk<br>Jan 12 18:45:08 rune64 co=
nnmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Network /net/co=
nnman/iwd/0/3/73706733_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins=
/iwd.c:object_removed() net.connman.iwd.Network /net/connman/iwd/0/3/4d6561=
7374657761_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:objec=
t_removed() net.connman.iwd.Network /net/connman/iwd/0/3/53756c6c6976616e20=
46616d696c79_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:obj=
ect_removed() net.connman.iwd.Network /net/connman/iwd/0/3/4e45544745415236=
332d3547_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_=
removed() net.connman.iwd.Network /net/connman/iwd/0/3/456476656e7475726573=
33_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_remove=
d() net.connman.iwd.Network /net/connman/iwd/0/3/4368696d652d366139366161_o=
pen<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed()=
 net.connman.iwd.Network /net/connman/iwd/0/3/73706732_psk<br>Jan 12 18:45:=
08 rune64 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Net=
work /net/connman/iwd/0/3/415454785a4951347761_psk<br>Jan 12 18:45:08 rune6=
4 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Network /ne=
t/connman/iwd/0/3/56697275735f3547_psk<br>Jan 12 18:45:08 rune64 connmand[2=
62]: plugins/iwd.c:object_removed() net.connman.iwd.Network /net/connman/iw=
d/0/3/456c4a656665_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd=
.c:object_removed() net.connman.iwd.Network /net/connman/iwd/0/3/486f757365=
537461726b3031_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:o=
bject_removed() net.connman.iwd.Network /net/connman/iwd/0/3/41545458495849=
537069_psk<br>Jan 12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_re=
moved() net.connman.iwd.Network /net/connman/iwd/0/3/5669727573_psk<br>Jan =
12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed() net.connma=
n.iwd.Network /net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk<br>Jan =
12 18:45:08 rune64 connmand[262]: plugins/iwd.c:object_removed() net.connma=
n.iwd.Network /net/connman/iwd/0/3/415454654865544b4932_psk<br>Jan 12 18:45=
:08 rune64 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Ne=
twork /net/connman/iwd/0/3/4e4554474541523633_psk<br>Jan 12 18:45:08 rune64=
 connmand[262]: plugins/iwd.c:object_removed() net.connman.iwd.Network /net=
/connman/iwd/0/3/48414e4e41_psk<br>Jan 12 18:45:08 rune64 connmand[262]: pl=
ugins/iwd.c:object_removed() net.connman.iwd.Network /net/connman/iwd/0/3/4=
8414e4e4135_psk<br></div><div><br></div>and when the interface comes back, =
it scans and sees more than one network between &#39;scanning 1&#39; to &#3=
9;scanning 0&#39; and it &#39;sees&#39; the saved interface and connects:</=
div><div><br></div><div><b>Jan 12 18:45:08 rune64 connmand[262]: plugins/iw=
d.c:station_property_change() /net/connman/iwd/0/3 scanning 1</b><br>Jan 12=
 18:45:08 rune64 connmand[262]: wlan0 {RX} 14872 packets 19669052 bytes<br>=
Jan 12 18:45:08 rune64 connmand[262]: wlan0 {TX} 8253 packets 809028 bytes<=
br></div><div>Jan 12 18:45:08 rune64 connmand[262]: wlan0 {update} flags 40=
99 &lt;UP&gt;<br>Jan 12 18:45:08 rune64 connmand[262]: wlan0 {newlink} inde=
x 3 address B8:27:EB:52:CC:D0 mtu 1500<br>Jan 12 18:45:08 rune64 connmand[2=
62]: wlan0 {newlink} index 3 operstate 2 &lt;DOWN&gt;<br><b>Jan 12 18:45:09=
 rune64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.Network=
 /net/connman/iwd/0/3/73706733_psk</b><br><b>Jan 12 18:45:09 rune64 connman=
d[262]: plugins/iwd.c:create_network() device /net/connman/iwd/0/3 name &#3=
9;spg3&#39; type psk connected 1 known_network /net/connman/iwd/73706733_ps=
k</b><br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_network_set=
_autoconnect() autoconnect 1<br>Jan 12 18:45:09 rune64 connmand[262]: plugi=
ns/iwd.c:update_auto_connect() auto_connect 1 autoconnect 1<br>Jan 12 18:45=
:09 rune64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.Netw=
ork /net/connman/iwd/0/3/73706732_psk<br>Jan 12 18:45:09 rune64 connmand[26=
2]: plugins/iwd.c:create_network() device /net/connman/iwd/0/3 name &#39;sp=
g2&#39; type psk connected 0 known_network (null)<br>Jan 12 18:45:09 rune64=
 connmand[262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br=
>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added() net.con=
nman.iwd.Network /net/connman/iwd/0/3/41545458495849537069_psk<br>Jan 12 18=
:45:09 rune64 connmand[262]: plugins/iwd.c:create_network() device /net/con=
nman/iwd/0/3 name &#39;ATTXIXISpi&#39; type psk connected 0 known_network (=
null)<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_network_set=
_autoconnect() autoconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugi=
ns/iwd.c:object_added() net.connman.iwd.Network /net/connman/iwd/0/3/456476=
656e747572657333_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c=
:create_network() device /net/connman/iwd/0/3 name &#39;Edventures3&#39; ty=
pe psk connected 0 known_network (null)<br>Jan 12 18:45:09 rune64 connmand[=
262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br>Jan 12 18=
:45:09 rune64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.N=
etwork /net/connman/iwd/0/3/5669727573_psk<br>Jan 12 18:45:09 rune64 connma=
nd[262]: plugins/iwd.c:create_network() device /net/connman/iwd/0/3 name &#=
39;Virus&#39; type psk connected 0 known_network (null)<br>Jan 12 18:45:09 =
rune64 connmand[262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnec=
t 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added() n=
et.connman.iwd.Network /net/connman/iwd/0/3/456476656e7475726573_psk<br>Jan=
 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network() device /n=
et/connman/iwd/0/3 name &#39;Edventures&#39; type psk connected 0 known_net=
work (null)<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_netwo=
rk_set_autoconnect() autoconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]:=
 plugins/iwd.c:object_added() net.connman.iwd.Network /net/connman/iwd/0/3/=
4e4554474541523633_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd=
.c:create_network() device /net/connman/iwd/0/3 name &#39;NETGEAR63&#39; ty=
pe psk connected 0 known_network (null)<br>Jan 12 18:45:09 rune64 connmand[=
262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br>Jan 12 18=
:45:09 rune64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.N=
etwork /net/connman/iwd/0/3/48414e4e41_psk<br>Jan 12 18:45:09 rune64 connma=
nd[262]: plugins/iwd.c:create_network() device /net/connman/iwd/0/3 name &#=
39;HANNA&#39; type psk connected 0 known_network (null)<br>Jan 12 18:45:09 =
rune64 connmand[262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnec=
t 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added() n=
et.connman.iwd.Network /net/connman/iwd/0/3/4c6f6164696e672e2e2e_psk<br>Jan=
 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network() device /n=
et/connman/iwd/0/3 name &#39;Loading...&#39; type psk connected 0 known_net=
work (null)<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_netwo=
rk_set_autoconnect() autoconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]:=
 plugins/iwd.c:object_added() net.connman.iwd.Network /net/connman/iwd/0/3/=
456c4a656665_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cre=
ate_network() device /net/connman/iwd/0/3 name &#39;ElJefe&#39; type psk co=
nnected 0 known_network (null)<br>Jan 12 18:45:09 rune64 connmand[262]: plu=
gins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br>Jan 12 18:45:09 ru=
ne64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.Network /n=
et/connman/iwd/0/3/53756c6c6976616e2046616d696c79_psk<br>Jan 12 18:45:09 ru=
ne64 connmand[262]: plugins/iwd.c:create_network() device /net/connman/iwd/=
0/3 name &#39;Sullivan Family&#39; type psk connected 0 known_network (null=
)<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_network_set_aut=
oconnect() autoconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/i=
wd.c:object_added() net.connman.iwd.Network /net/connman/iwd/0/3/4e45544745=
415236332d3547_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:c=
reate_network() device /net/connman/iwd/0/3 name &#39;NETGEAR63-5G&#39; typ=
e psk connected 0 known_network (null)<br>Jan 12 18:45:09 rune64 connmand[2=
62]: plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br>Jan 12 18:=
45:09 rune64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.Ne=
twork /net/connman/iwd/0/3/415454654865544b4932_psk<br>Jan 12 18:45:09 rune=
64 connmand[262]: plugins/iwd.c:create_network() device /net/connman/iwd/0/=
3 name &#39;ATTeHeTKI2&#39; type psk connected 0 known_network (null)<br>Ja=
n 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_network_set_autoconnec=
t() autoconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:ob=
ject_added() net.connman.iwd.Network /net/connman/iwd/0/3/486f7573655374617=
26b3031_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_n=
etwork() device /net/connman/iwd/0/3 name &#39;HouseStark01&#39; type psk c=
onnected 0 known_network (null)<br>Jan 12 18:45:09 rune64 connmand[262]: pl=
ugins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br>Jan 12 18:45:09 r=
une64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.Network /=
net/connman/iwd/0/3/415454785a4951347761_psk<br>Jan 12 18:45:09 rune64 conn=
mand[262]: plugins/iwd.c:create_network() device /net/connman/iwd/0/3 name =
&#39;ATTxZIQ4wa&#39; type psk connected 0 known_network (null)<br>Jan 12 18=
:45:09 rune64 connmand[262]: plugins/iwd.c:cm_network_set_autoconnect() aut=
oconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_ad=
ded() net.connman.iwd.Network /net/connman/iwd/0/3/4d4f544f524f4c412d464530=
4431_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:create_netw=
ork() device /net/connman/iwd/0/3 name &#39;MOTOROLA-FE0D1&#39; type psk co=
nnected 0 known_network (null)<br>Jan 12 18:45:09 rune64 connmand[262]: plu=
gins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br>Jan 12 18:45:09 ru=
ne64 connmand[262]: plugins/iwd.c:object_added() net.connman.iwd.Network /n=
et/connman/iwd/0/3/56697275735f3547_psk<br>Jan 12 18:45:09 rune64 connmand[=
262]: plugins/iwd.c:create_network() device /net/connman/iwd/0/3 name &#39;=
Virus_5G&#39; type psk connected 0 known_network (null)<br>Jan 12 18:45:09 =
rune64 connmand[262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnec=
t 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:object_added() n=
et.connman.iwd.Network /net/connman/iwd/0/3/4d65617374657761_psk<br>Jan 12 =
18:45:09 rune64 connmand[262]: plugins/iwd.c:create_network() device /net/c=
onnman/iwd/0/3 name &#39;Meastewa&#39; type psk connected 0 known_network (=
null)<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:cm_network_set=
_autoconnect() autoconnect 0<br>Jan 12 18:45:09 rune64 connmand[262]: plugi=
ns/iwd.c:object_added() net.connman.iwd.Network /net/connman/iwd/0/3/436869=
6d652d366139366161_open<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iw=
d.c:create_network() device /net/connman/iwd/0/3 name &#39;Chime-6a96aa&#39=
; type open connected 0 known_network (null)<br>Jan 12 18:45:09 rune64 conn=
mand[262]: plugins/iwd.c:cm_network_set_autoconnect() autoconnect 0<br><b>J=
an 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:station_property_change(=
) /net/connman/iwd/0/3 scanning 0</b><br>Jan 12 18:45:09 rune64 connmand[26=
2]: plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 state conn=
ecting<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:station_prope=
rty_change() /net/connman/iwd/0/3 connected_network /net/connman/iwd/0/3/73=
706733_psk<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iwd.c:network_p=
roperty_change() /net/connman/iwd/0/3/73706733_psk connected 1<br>Jan 12 18=
:45:09 rune64 connmand[262]: plugins/iwd.c:update_network_connected() inter=
face name wlan0 index 3<br>Jan 12 18:45:09 rune64 connmand[262]: plugins/iw=
d.c:ordered_networks_cb()<br>Jan 12 18:45:09 rune64 connmand[262]: wlan0 {R=
X} 14873 packets 19669151 bytes<br>Jan 12 18:45:09 rune64 connmand[262]: wl=
an0 {TX} 8253 packets 809028 bytes<br>Jan 12 18:45:09 rune64 connmand[262]:=
 wlan0 {update} flags 69635 &lt;UP,LOWER_UP&gt;<br>Jan 12 18:45:09 rune64 c=
onnmand[262]: wlan0 {newlink} index 3 address B8:27:EB:xx:x:xx mtu 1500<br>=
Jan 12 18:45:09 rune64 connmand[262]: wlan0 {newlink} index 3 operstate 5 &=
lt;DORMANT&gt;<br>Jan 12 18:45:09 rune64 connmand[262]: wlan0 {add} route f=
e80:: gw :: scope 0 &lt;UNIVERSE&gt;<br>Jan 12 18:45:09 rune64 connmand[262=
]: wlan0 {RX} 14874 packets 19669306 bytes<br>Jan 12 18:45:09 rune64 connma=
nd[262]: wlan0 {TX} 8256 packets 809438 bytes<br>Jan 12 18:45:09 rune64 con=
nmand[262]: wlan0 {update} flags 69699 &lt;UP,RUNNING,LOWER_UP&gt;<br>Jan 1=
2 18:45:09 rune64 connmand[262]: wlan0 {newlink} index 3 address B8:27:EB:x=
x:xx:xx mtu 1500<br>Jan 12 18:45:09 rune64 connmand[262]: wlan0 {newlink} i=
ndex 3 operstate 6 &lt;UP&gt;<br>Jan 12 18:45:09 rune64 connmand[262]: plug=
ins/iwd.c:station_property_change() /net/connman/iwd/0/3 state connected<br=
>Jan 12 18:45:10 rune64 connmand[262]: wlan0 {add} route 2600:1700:4320:6ca=
f:: gw :: scope 0 &lt;UNIVERSE&gt;<br>Jan 12 18:45:10 rune64 connmand[262]:=
 wlan0 {add} route fd21:98c8:1d28:: gw :: scope 0 &lt;UNIVERSE&gt;<br>Jan 1=
2 18:45:11 rune64 connmand[262]: plugins/iwd.c:station_property_change() /n=
et/connman/iwd/0/3 scanning 1<br>Jan 12 18:45:11 rune64 connmand[262]: wlan=
0 {add} address 2600:1700:4320:6caf:baxx:xxff:fexx:xxxx/64 label (null) fam=
ily 10<br>Jan 12 18:45:12 rune64 connmand[262]: wlan0 {add} address fd21:98=
c8:1d28:0:ba27:ebff:fexx:xxxx/64 label (null) family 10<br>Jan 12 18:45:15 =
rune64 connmand[262]: plugins/iwd.c:station_property_change() /net/connman/=
iwd/0/3 scanning 0<br></div><div><br></div><div>It immediately connects. Be=
tween &#39;scanning 1&#39; and &#39;scanning 0&#39; it gets all available n=
etworks. This is one thing I see as &#39;different&#39; from taking an inte=
rface down then up versus restarting the SSID on the router. When it is con=
nected, it works similarly in that it gets one network at a time <br></div>=
<div><br></div><div>On the IWD side, the /var/lib/iwd/spg.psk has &#39;Auto=
Connect=3Dtrue&#39; set in it, now. <br></div><div><br></div><div>Hope this=
 is helpful.</div><div><br></div><div>Regards,</div><div><br></div><div>Kei=
th<br></div><div><br></div></div></div></blockquote><div>=C2=A0</div><div>D=
aniel,</div><div><br></div><div>Looking at this a bit more. I notice if I l=
et iwd manage the connection by itself (/etc/iwd/main.conf with &quot;Enabl=
eNetworkConfiguration=3Dtrue&quot; and disable connman), it reconnects no m=
atter what. Reboot the router or just restart the SSID. When I let connman =
manage it, a reboot will sometimes reconnect. A radio restart on the router=
 will never reconnect. The attached log shows the connman and the iwd repor=
ts in the journal. I rebooted the router at 17:16 and it reconnected. I res=
tarted the radio at 17:24 and it did not reconnect. iwd reports that the SS=
ID I want &quot;spg3&quot; is up and had a pretty good strength, but it doe=
s not initiate a connection. <br></div><div>Example: <br></div><div>Jan 17 =
17:26:17 rune64 iwd[263]: src/station.c:station_add_seen_bss() Processing B=
SS &#39;08:02:8e:94:12:97&#39; with SSID: spg3, freq: 5180, rank: 14588, st=
rength: -5300</div><div><br></div><div>So after a bit of this I take the in=
terface down then back up at 17:27:16 and it immediately reconnects.</div><=
div><br></div><div>The interesting bit is that IWD records that it &#39;see=
s&#39; my SSID but connman does not actually connect to it:</div><div><br><=
/div><div>Hope this is helpful. <br></div><div><br></div><div>Keith<br></di=
v><div><br></div><div><br></div></div></div>
</blockquote></div>

--0000000000005df51a05b9e3b92e--

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list -- connman@lists.01.org
To unsubscribe send an email to connman-le...@lists.01.org


------------------------------

End of connman Digest, Vol 66, Issue 17
***************************************

Reply via email to