Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

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

Today's Topics:

   1. [RFC PATCH] ipconfig: cleanup ipdevice gateway fields
      (Sergey Matyukevich)
   2. Re: [RFC PATCH] ipconfig: cleanup ipdevice gateway fields (KeithG)
   3. Re: [RFC PATCH] ipconfig: cleanup ipdevice gateway fields
      (Sergey Matyukevich)
   4. Re: connman wifi disconnect problem (KeithG)


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

Date: Tue, 29 Sep 2020 19:30:39 +0300
From: Sergey Matyukevich <[email protected]>
Subject: [RFC PATCH] ipconfig: cleanup ipdevice gateway fields
To: [email protected]
Cc: Sergey Matyukevich <[email protected]>
Message-ID: <[email protected]>

Suggested commit fixes runtime update of WiFi service. For instance,
consider the following use-case:

- cellular and WiFi technologies are enabled
- WiFi is a preferred technology
- EnableOnlineCheck is enabled
- WiFi service is described by a service file
- WiFi service is in ONLINE state

When access point is modified in WiFi service file, connman detects
those changes and performs WiFi service reconfiguration. However
updated WiFi service never reaches ONLINE state.

The root cause is in a stalled gateway value returned by
__connman_ipconfig_get_gateway_from_index in
wispr_route_request function. Online check fails since previous
gateway address is used for the new access point.

Looking at ipconfig code, it turns out that ipdevice->ipv[46]_gateway
fields are not cleaned up when IPv[46] system network configuration is
cleared.  Suggested fix is to cleanup IPv4/IPv6 gateways in ipdevice
whenever IPv4/IPv6 system network configuration is cleared.
---
 src/ipconfig.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/src/ipconfig.c b/src/ipconfig.c
index 915c0823..21a2c41d 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -1647,6 +1647,11 @@ int __connman_ipconfig_enable(struct connman_ipconfig 
*ipconfig)
                connman_ipaddress_clear(ipdevice->config_ipv4->system);
 
                __connman_ipconfig_unref(ipdevice->config_ipv4);
+
+               if (ipdevice->ipv4_gateway) {
+                       g_free(ipdevice->ipv4_gateway);
+                       ipdevice->ipv4_gateway = NULL;
+               }
        }
 
        if (type == CONNMAN_IPCONFIG_TYPE_IPV6 &&
@@ -1657,6 +1662,11 @@ int __connman_ipconfig_enable(struct connman_ipconfig 
*ipconfig)
                connman_ipaddress_clear(ipdevice->config_ipv6->system);
 
                __connman_ipconfig_unref(ipdevice->config_ipv6);
+
+               if (ipdevice->ipv6_gateway) {
+                       g_free(ipdevice->ipv6_gateway);
+                       ipdevice->ipv6_gateway = NULL;
+               }
        }
 
        if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
@@ -1719,6 +1729,12 @@ int __connman_ipconfig_disable(struct connman_ipconfig 
*ipconfig)
                connman_ipaddress_clear(ipdevice->config_ipv4->system);
                __connman_ipconfig_unref(ipdevice->config_ipv4);
                ipdevice->config_ipv4 = NULL;
+
+               if (ipdevice->ipv4_gateway) {
+                       g_free(ipdevice->ipv4_gateway);
+                       ipdevice->ipv4_gateway = NULL;
+               }
+
                return 0;
        }
 
@@ -1728,6 +1744,12 @@ int __connman_ipconfig_disable(struct connman_ipconfig 
*ipconfig)
                connman_ipaddress_clear(ipdevice->config_ipv6->system);
                __connman_ipconfig_unref(ipdevice->config_ipv6);
                ipdevice->config_ipv6 = NULL;
+
+               if (ipdevice->ipv6_gateway) {
+                       g_free(ipdevice->ipv6_gateway);
+                       ipdevice->ipv6_gateway = NULL;
+               }
+
                return 0;
        }
 

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

Date: Tue, 29 Sep 2020 12:03:00 -0500
From: KeithG <[email protected]>
Subject: Re: [RFC PATCH] ipconfig: cleanup ipdevice gateway fields
To: Sergey Matyukevich <[email protected]>
Cc: [email protected]
Message-ID:
        <cag17s_nrtvtxv9_nwcxkwkaoj2ceunysazh4zgpuycfbxhf...@mail.gmail.com>
Content-Type: multipart/alternative;
        boundary="0000000000000b2cd805b076c207"

--0000000000000b2cd805b076c207
Content-Type: text/plain; charset="UTF-8"

Is this why connman will not reconnect when the SSID is power cycled?

 I will try applying this patch to mainline and see how it goes

Keith

On Tue, Sep 29, 2020 at 11:25 AM Sergey Matyukevich <[email protected]>
wrote:

> Suggested commit fixes runtime update of WiFi service. For instance,
> consider the following use-case:
>
> - cellular and WiFi technologies are enabled
> - WiFi is a preferred technology
> - EnableOnlineCheck is enabled
> - WiFi service is described by a service file
> - WiFi service is in ONLINE state
>
> When access point is modified in WiFi service file, connman detects
> those changes and performs WiFi service reconfiguration. However
> updated WiFi service never reaches ONLINE state.
>
> The root cause is in a stalled gateway value returned by
> __connman_ipconfig_get_gateway_from_index in
> wispr_route_request function. Online check fails since previous
> gateway address is used for the new access point.
>
> Looking at ipconfig code, it turns out that ipdevice->ipv[46]_gateway
> fields are not cleaned up when IPv[46] system network configuration is
> cleared.  Suggested fix is to cleanup IPv4/IPv6 gateways in ipdevice
> whenever IPv4/IPv6 system network configuration is cleared.
> ---
>  src/ipconfig.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>
> diff --git a/src/ipconfig.c b/src/ipconfig.c
> index 915c0823..21a2c41d 100644
> --- a/src/ipconfig.c
> +++ b/src/ipconfig.c
> @@ -1647,6 +1647,11 @@ int __connman_ipconfig_enable(struct
> connman_ipconfig *ipconfig)
>                 connman_ipaddress_clear(ipdevice->config_ipv4->system);
>
>                 __connman_ipconfig_unref(ipdevice->config_ipv4);
> +
> +               if (ipdevice->ipv4_gateway) {
> +                       g_free(ipdevice->ipv4_gateway);
> +                       ipdevice->ipv4_gateway = NULL;
> +               }
>         }
>
>         if (type == CONNMAN_IPCONFIG_TYPE_IPV6 &&
> @@ -1657,6 +1662,11 @@ int __connman_ipconfig_enable(struct
> connman_ipconfig *ipconfig)
>                 connman_ipaddress_clear(ipdevice->config_ipv6->system);
>
>                 __connman_ipconfig_unref(ipdevice->config_ipv6);
> +
> +               if (ipdevice->ipv6_gateway) {
> +                       g_free(ipdevice->ipv6_gateway);
> +                       ipdevice->ipv6_gateway = NULL;
> +               }
>         }
>
>         if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
> @@ -1719,6 +1729,12 @@ int __connman_ipconfig_disable(struct
> connman_ipconfig *ipconfig)
>                 connman_ipaddress_clear(ipdevice->config_ipv4->system);
>                 __connman_ipconfig_unref(ipdevice->config_ipv4);
>                 ipdevice->config_ipv4 = NULL;
> +
> +               if (ipdevice->ipv4_gateway) {
> +                       g_free(ipdevice->ipv4_gateway);
> +                       ipdevice->ipv4_gateway = NULL;
> +               }
> +
>                 return 0;
>         }
>
> @@ -1728,6 +1744,12 @@ int __connman_ipconfig_disable(struct
> connman_ipconfig *ipconfig)
>                 connman_ipaddress_clear(ipdevice->config_ipv6->system);
>                 __connman_ipconfig_unref(ipdevice->config_ipv6);
>                 ipdevice->config_ipv6 = NULL;
> +
> +               if (ipdevice->ipv6_gateway) {
> +                       g_free(ipdevice->ipv6_gateway);
> +                       ipdevice->ipv6_gateway = NULL;
> +               }
> +
>                 return 0;
>         }
>
> _______________________________________________
> connman mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>

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

<div dir=3D"ltr"><div>Is this why connman will not reconnect when the SSID =
is power cycled? <br></div><div><br></div><div>=C2=A0I will try applying th=
is patch to mainline and see how it goes</div><div><br></div><div>Keith<br>=
</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Tue, Sep 29, 2020 at 11:25 AM Sergey Matyukevich &lt;<a href=3D"ma=
ilto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">Suggested commit fixes runtime u=
pdate of WiFi service. For instance,<br>
consider the following use-case:<br>
<br>
- cellular and WiFi technologies are enabled<br>
- WiFi is a preferred technology<br>
- EnableOnlineCheck is enabled<br>
- WiFi service is described by a service file<br>
- WiFi service is in ONLINE state<br>
<br>
When access point is modified in WiFi service file, connman detects<br>
those changes and performs WiFi service reconfiguration. However<br>
updated WiFi service never reaches ONLINE state.<br>
<br>
The root cause is in a stalled gateway value returned by<br>
__connman_ipconfig_get_gateway_from_index in<br>
wispr_route_request function. Online check fails since previous<br>
gateway address is used for the new access point.<br>
<br>
Looking at ipconfig code, it turns out that ipdevice-&gt;ipv[46]_gateway<br=
>
fields are not cleaned up when IPv[46] system network configuration is<br>
cleared.=C2=A0 Suggested fix is to cleanup IPv4/IPv6 gateways in ipdevice<b=
r>
whenever IPv4/IPv6 system network configuration is cleared.<br>
---<br>
=C2=A0src/ipconfig.c | 22 ++++++++++++++++++++++<br>
=C2=A01 file changed, 22 insertions(+)<br>
<br>
diff --git a/src/ipconfig.c b/src/ipconfig.c<br>
index 915c0823..21a2c41d 100644<br>
--- a/src/ipconfig.c<br>
+++ b/src/ipconfig.c<br>
@@ -1647,6 +1647,11 @@ int __connman_ipconfig_enable(struct connman_ipconfi=
g *ipconfig)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 connman_ipaddress_c=
lear(ipdevice-&gt;config_ipv4-&gt;system);<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 __connman_ipconfig_=
unref(ipdevice-&gt;config_ipv4);<br>
+<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (ipdevice-&gt;ip=
v4_gateway) {<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0g_free(ipdevice-&gt;ipv4_gateway);<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0ipdevice-&gt;ipv4_gateway =3D NULL;<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (type =3D=3D CONNMAN_IPCONFIG_TYPE_IPV6 &amp=
;&amp;<br>
@@ -1657,6 +1662,11 @@ int __connman_ipconfig_enable(struct connman_ipconfi=
g *ipconfig)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 connman_ipaddress_c=
lear(ipdevice-&gt;config_ipv6-&gt;system);<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 __connman_ipconfig_=
unref(ipdevice-&gt;config_ipv6);<br>
+<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (ipdevice-&gt;ip=
v6_gateway) {<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0g_free(ipdevice-&gt;ipv6_gateway);<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0ipdevice-&gt;ipv6_gateway =3D NULL;<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (type =3D=3D CONNMAN_IPCONFIG_TYPE_IPV4)<br>
@@ -1719,6 +1729,12 @@ int __connman_ipconfig_disable(struct connman_ipconf=
ig *ipconfig)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 connman_ipaddress_c=
lear(ipdevice-&gt;config_ipv4-&gt;system);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 __connman_ipconfig_=
unref(ipdevice-&gt;config_ipv4);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ipdevice-&gt;config=
_ipv4 =3D NULL;<br>
+<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (ipdevice-&gt;ip=
v4_gateway) {<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0g_free(ipdevice-&gt;ipv4_gateway);<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0ipdevice-&gt;ipv4_gateway =3D NULL;<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}<br>
+<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
<br>
@@ -1728,6 +1744,12 @@ int __connman_ipconfig_disable(struct connman_ipconf=
ig *ipconfig)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 connman_ipaddress_c=
lear(ipdevice-&gt;config_ipv6-&gt;system);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 __connman_ipconfig_=
unref(ipdevice-&gt;config_ipv6);<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ipdevice-&gt;config=
_ipv6 =3D NULL;<br>
+<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (ipdevice-&gt;ip=
v6_gateway) {<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0g_free(ipdevice-&gt;ipv6_gateway);<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0ipdevice-&gt;ipv6_gateway =3D NULL;<br>
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}<br>
+<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return 0;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<br>
<br>
_______________________________________________<br>
connman mailing list -- <a href=3D"mailto:[email protected]"; target=3D"_=
blank">[email protected]</a><br>
To unsubscribe send an email to <a href=3D"mailto:[email protected]=
g" target=3D"_blank">[email protected]</a><br>
</blockquote></div>

--0000000000000b2cd805b076c207--

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

Date: Tue, 29 Sep 2020 22:48:51 +0300
From: Sergey Matyukevich <[email protected]>
Subject: Re: [RFC PATCH] ipconfig: cleanup ipdevice gateway fields
To: KeithG <[email protected]>
Cc: [email protected]
Message-ID: <20200929194851.GA14556@curiosity>
Content-Type: text/plain; charset=us-ascii

> Is this why connman will not reconnect when the SSID is power cycled?
> 
>  I will try applying this patch to mainline and see how it goes

No, I don't think this fix is going to help you. It addresses a very
specific stale gateway issue which prevents transition from READY to
ONLINE state. Your issue looks like a different one. So far in my
tests I haven't observed any problems with rebooted APs.
FWIW I am using wpa_supplicant at the moment.

Regards,
Sergey

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

Date: Tue, 29 Sep 2020 16:19:05 -0500
From: KeithG <[email protected]>
Subject: Re: connman wifi disconnect problem
To: Daniel Wagner <[email protected]>
Cc: "Ryll, Jan (GED-SDD2)" <[email protected]>, "[email protected]"
        <[email protected]>
Message-ID:
        <cag17s_msvbic6r1rorqgyreknq1j_2xtjkmday1r5ktjys_...@mail.gmail.com>
Content-Type: multipart/alternative;
        boundary="000000000000df1e6205b07a5574"

--000000000000df1e6205b07a5574
Content-Type: text/plain; charset="UTF-8"

On Mon, Sep 28, 2020 at 5:43 AM KeithG <[email protected]> wrote:

>
>
> On Sun, Sep 27, 2020 at 8:24 PM KeithG <[email protected]> wrote:
>
>>
>>
>> On Thu, Sep 24, 2020 at 7:56 AM KeithG <[email protected]> wrote:
>>
>>> Daniel,
>>>
>>> I pulled the latest connman and was able to run monitor-connman. The
>>> attached log is what I got when I:
>>> 1) stopped connman
>>> 2) started connman
>>> 3) turned off the radio
>>> 4) waited until my phone and other devices were online with that SSID
>>> 5) typed 'connmanctl scan wifi' got no return
>>> 6) typed ctrl c
>>> 7) typed 'connmanctl services'
>>>
>>> I noted that after I initiated the scan even though connman reported
>>> nothing, it had already begun the connection and connected. We have noticed
>>> that if we type 'iwctl station wlan0 scan' or, apparently 'connmanctl scan
>>> wifi' that it will initiate and complete a scan. I wonder if the fact that
>>> connman 1.38 never returns with a scan complete message is a hint? The
>>> monitor-connman.txt is what showed in the terminal when I ran the script.
>>> The monitor-connman-journal.txt is what appeared in the journal for u-
>>> connman. At the same time the journalctl -iwd shows this:
>>>
>>> Sep 24 07:29:14 keith-dell iwd[405]: Received Deauthentication event,
>>> reason: 3, from_ap: false
>>> Sep 24 07:39:08 keith-dell iwd[405]: Received Deauthentication event,
>>> reason: 3, from_ap: true
>>> Sep 24 07:39:08 keith-dell iwd[405]: Connected BSS not in scan results
>>> Sep 24 07:39:08 keith-dell iwd[405]: authentication timed out
>>>
>>> Is there some sort of timing problem?
>>>
>>> Keith
>>>
>>> On Wed, Sep 23, 2020 at 2:18 AM Daniel Wagner <[email protected]> wrote:
>>>
>>>> On Tue, Sep 22, 2020 at 08:59:57AM -0500, KeithG wrote:
>>>> > I cannot find the monitor-iwd script.
>>>>
>>>> This script is part of the iwd sources.
>>>>
>>>> > I found the monitor-connman script,
>>>> > but when I try to run the monitor-connman script, I get a gobject
>>>> error:
>>>> >
>>>> > $ ./monitor-connman
>>>> > Traceback (most recent call last):
>>>> >   File "./monitor-connman", line 3, in <module>
>>>> >     import gobject
>>>> > ModuleNotFoundError: No module named 'gobject'
>>>>
>>>> The Python support for GLib gobject was always a bit troublesome and it
>>>> seems it aged really badly.
>>>>
>>>> > This is even though I believe that python-gobject is installed and I
>>>> can
>>>> > run the hello.py script on this page:
>>>> > https://pygobject.readthedocs.io/en/latest/getting_started.html
>>>> > python 3.8.5 and
>>>> > $ pacman -Q | grep gobject
>>>> > gobject-introspection 1.66.0-1
>>>> > gobject-introspection-runtime 1.66.0-1
>>>> > pygobject-devel 3.36.1-1
>>>> > python-gobject 3.36.1-1
>>>>
>>>> I have the same problem with Python 3 on my distro. It still works with
>>>> Python 2. The test script need to use the dynamic version of the GLib
>>>> binding. See the other patch.
>>>>
>>>> > I am now running on a pretty common dell laptop with an intel wifi
>>>> card and
>>>> > get the same behavior. iwd 1.9 connman 1.38. I connected via connman
>>>> then
>>>> > powered down the radio on the router then back on then had to
>>>> reconnect by
>>>> > typing in teh password.  The journal of this event is attached.
>>>> >
>>>> > I did notice that in order to reconnect on this laptop (Arch Linux
>>>> x86_64)
>>>> > that I had to type in the password again though I was just connected
>>>> before
>>>> > I turned off the SSID. The journal running /usr/bin/connmand -n -d
>>>> > plugins/iwd.c:src/service.c though this event is attached.
>>>>
>>>> I'll try to reproduce it later.
>>>>
>>>> Thanks,
>>>> Daniel
>>>>
>>>
>> I see this with all my Arch Linux installs. I made a basic install on an
>> RPi with nothing but the base system and connman and iwd and a few other
>> programs. When I use connman to manage the wifi interface and run
>> ./monitor-iwd, nothing ever displays even when the wifi goes down. I'd show
>> the tect capture, but it is blank. When I run systemd-networks/dhcpcd with
>> iwd, and have the network go down, I get a lot of messages and it
>> reconnects when the radio comes back online:
>> # ./monitor-iwd
>> {Station} [/net/connman/iwd/0/3] State = disconnected
>> {Network} [/net/connman/iwd/0/3/73706733_psk] Connected = False
>> {Station} [/net/connman/iwd/0/3] Scanning = True
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/52756e65417564696f4150_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4154546a435336706932_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541525f455854_open]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/456476656e7475726573_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541523938_psk]
>> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/73706733_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4d65617374657761_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/456476656e747572657333_psk]
>> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/73706732_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/415454785a4951347761_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/486f757365537461726b3031_psk]
>> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/456c4a656665_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/426964656e486172726973_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/415454654865544b4932_psk]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541523633_psk]
>> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e41_psk]
>> {Station} [/net/connman/iwd/0/3] Scanning = False
>> {Station} [/net/connman/iwd/0/3] Scanning = True
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/52756e65417564696f4150_psk]
>>       Name = RuneAudioAP
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e41_psk]
>>       Name = HANNA
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network} [/net/connman/iwd/0/3/456c4a656665_psk]
>>       Name = ElJefe
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/486f757365537461726b3031_psk]
>>       Name = HouseStark01
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541523633_psk]
>>       Name = NETGEAR63
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/456476656e7475726573_psk]
>>       Name = Edventures
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541523938_psk]
>>       Name = NETGEAR98
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/415454654865544b4932_psk]
>>       Name = ATTeHeTKI2
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4974204275726e73205768656e204950_psk]
>>       Name = It Burns When IP
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e4135_psk]
>>       Name = HANNA5
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/456476656e747572657333_psk]
>>       Name = Edventures3
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Station} [/net/connman/iwd/0/3] Scanning = False
>> {Station} [/net/connman/iwd/0/3] Scanning = True
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/426964656e486172726973_psk]
>>       Name = BidenHarris
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Station} [/net/connman/iwd/0/3] Scanning = False
>> {Station} [/net/connman/iwd/0/3] Scanning = True
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/415454785a4951347761_psk]
>>       Name = ATTxZIQ4wa
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk]
>>       Name = MOTOROLA-FE0D1
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541525f455854_open]
>>       Name = NETGEAR_EXT
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = open
>> {Station} [/net/connman/iwd/0/3] Scanning = False
>> {Station} [/net/connman/iwd/0/3] Scanning = True
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541525f455854_open]
>> {Removed net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4d4f544f524f4c412d4645304431_psk]
>> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e4135_psk]
>> {Added net.connman.iwd.Network} [/net/connman/iwd/0/3/73706733_psk]
>>       Name = spg3
>>       Connected = True
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>>       KnownNetwork = /net/connman/iwd/73706733_psk
>> {Added net.connman.iwd.Network} [/net/connman/iwd/0/3/73706732_psk]
>>       Name = spg2
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Added net.connman.iwd.Network}
>> [/net/connman/iwd/0/3/4e4554474541523336_psk]
>>       Name = NETGEAR36
>>       Connected = False
>>       Device = /net/connman/iwd/0/3
>>       Type = psk
>> {Station} [/net/connman/iwd/0/3] Scanning = False
>> {Station} [/net/connman/iwd/0/3] State = connecting
>> {Station} [/net/connman/iwd/0/3] ConnectedNetwork =
>> /net/connman/iwd/0/3/73706733_psk
>> {Network} [/net/connman/iwd/0/3/73706733_psk] Connected = True
>> {Station} [/net/connman/iwd/0/3] State = connected
>> {KnownNetwork} [/net/connman/iwd/73706733_psk] LastConnectedTime =
>> 2020-09-28T01:10:45Z
>>
>> The attached journal shows this for downing the radio when connman was
>> controlling the network. It ignores it. My guess is there is some strange
>> setting in Arch Linux which stops this from working when connman is
>> managing things. What more can I do to help? I see this same behavior on my
>> arm devices (RPis) and x86_64 full desktop installs.
>>
>> Keith
>>
>>
> Daniel,
>
> I woke up this morning and I think I get it now. I need to run monitor-iwd
> when I run networkd/dhcpcd and monitor-connman when connman is managing the
> connections. Well, with the same process, this is the report from
> monitor-connman when connman is managing the interface (I am monitoring it
> over ssh by logging into the ethernet IP address):
>
> # ./monitor-connman
> {Service} [/net/connman/service/wifi_b827eb52ccd0_73706732_managed_psk]
> Strength = 62
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_52756e65417564696f4150_managed_psk]
> Strength = 56
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_415454785a4951347761_managed_psk]
> Strength = 22
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk]
> Strength = 21
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_44617272656e333231_managed_psk]
> Strength = 15
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_464249205375727665696c6c616e63652056616e_managed_psk]
> Strength = 15
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_52756e65417564696f4150_managed_psk]
> Strength = 55
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 34
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_486f757365537461726b3031_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456c4a656665_managed_psk] Strength
> = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4154546a435336706932_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_managed_psk]
> Strength = 20
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456476656e747572657333_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_44617272656e333231_managed_psk]
> Strength = 18
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523336_managed_psk]
> Strength = 15
>
>
>
>
>
>
>
>
>
> *{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> State = association{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] State =
> configuration{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Ethernet = {
> Method=auto Interface=wlan0 Address=B8:27:EB:52:CC:D0 MTU=1500 }{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Ethernet = {
> Method=auto Interface=wlan0 Address=B8:27:EB:52:CC:D0 MTU=1500 }{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Timeservers =
> [ ]{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> State = ready{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Favorite =
> 1{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> Domains = [ ]{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Proxy = {
> }{Technology} [/net/connman/technology/wifi] Connected = 1*
>
>
>
>
>
>
>
>
>
>
>
> *{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> IPv6 = { Method=auto Address=2600:1700:4320:6caf:ba27:ebff:fe52:ccd0
> PrefixLength=64 Privacy=disabled }{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Domains = [
> griders ]{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Timeservers =
> [ ]{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> IPv4 = { Method=dhcp Address=192.168.2.41 Netmask=255.255.255.0 }{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Nameservers =
> [ 192.168.2.3 xxxx:xxxx:xxxx:xxxx:ba27:ebff:fe0b:9be6 ]{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Domains = [
> ]{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> Timeservers = [ ]{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Timeservers =
> [ ]{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> State = disconnect{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Domains = [
> ]{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> Proxy = { }{Technology} [/net/connman/technology/wifi] Connected = 0*
>
>
>
>
>
> *{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> Timeservers = [ ]{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Timeservers =
> [ ]{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> State = idle{Service} [/net/connman/service/ethernet_b827eb079985_cable]
> IPv4 = { Method=dhcp Address=192.168.2.193 Netmask=255.255.255.0 }{Service}
> [/net/connman/service/ethernet_b827eb079985_cable] IPv4 = { Method=dhcp
> Address=192.168.2.193 Netmask=255.255.255.0 Gateway=192.168.2.1 }{Service}
> [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Nameservers =
> [ ]*
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 15
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 33
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 37
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk]
> Strength = 25
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456c4a656665_managed_psk] Strength
> = 22
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_managed_psk]
> Strength = 24
> {Service} [/net/connman/service/wifi_b827eb52ccd0_48414e4e41_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_415454654865544b4932_managed_psk]
> Strength = 15
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_464249205375727665696c6c616e63652056616e_managed_psk]
> Strength = 17
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 33
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456476656e7475726573_managed_psk]
> Strength = 29
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_managed_psk]
> Strength = 21
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456c4a656665_managed_psk] Strength
> = 20
> {Service} [/net/connman/service/wifi_b827eb52ccd0_48414e4e41_managed_psk]
> Strength = 17
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_426964656e486172726973_managed_psk]
> Strength = 17
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523336_managed_psk]
> Strength = 17
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_415454654865544b4932_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_415454785a4951347761_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4154546a435336706932_managed_psk]
> Strength = 16
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk]
> Strength = 18
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456476656e747572657333_managed_psk]
> Strength = 16
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4d65617374657761_managed_psk]
> Strength = 16
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_464249205375727665696c6c616e63652056616e_managed_psk]
> Strength = 16
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 36
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456476656e7475726573_managed_psk]
> Strength = 30
> {Service} [/net/connman/service/wifi_b827eb52ccd0_48414e4e41_managed_psk]
> Strength = 20
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_415454785a4951347761_managed_psk]
> Strength = 23
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4154546a435336706932_managed_psk]
> Strength = 18
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456476656e747572657333_managed_psk]
> Strength = 19
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523336_managed_psk]
> Strength = 15
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk]
> Strength = 17
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4d65617374657761_managed_psk]
> Strength = 15
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541525f455854_managed_none]
> Strength = 13
> *{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk]
> Strength = 44*
> {Service} [/net/connman/service/wifi_b827eb52ccd0_73706732_managed_psk]
> Strength = 59
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk]
> Strength = 37
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_managed_psk]
> Strength = 21
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_456476656e747572657333_managed_psk]
> Strength = 20
> {Service}
> [/net/connman/service/wifi_b827eb52ccd0_464249205375727665696c6c616e63652056616e_managed_psk]
> Strength = 17
> (while typing this I notice that it scanned again, sees the SSID, but does
> not initiate a connection...
>
> I can see in the log when I use the connmanctl interface to connect to the
> SSID then I can see it disconnect, then that it scans and 'sees' it again,
> but it never re-connects even after it scans again. Looking at the
> difference between the monitor-* logs, it looks like connman, somehow does
> not recognize that it knows that network.
>
> When I query connman, it looks like it is supposed to autoconnect:
> connmanctl> services --properties wifi_b827eb52ccd0_73706733_managed_psk
> /net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk
>   Type = wifi
>   Security = [ psk ]
>   State = idle
>   Strength = 45
>   Favorite = True
>   Immutable = False
>   *AutoConnect = True*
>   Name = spg3
>   Ethernet = [ Method=auto ]
>   IPv4 = [  ]
>   IPv4.Configuration = [ Method=dhcp ]
>   IPv6 = [  ]
>   IPv6.Configuration = [ Method=auto, Privacy=disabled ]
>   Nameservers = [  ]
>   Nameservers.Configuration = [  ]
>   Timeservers = [  ]
>   Timeservers.Configuration = [  ]
>   Domains = [  ]
>   Domains.Configuration = [  ]
>   Proxy = [  ]
>   Proxy.Configuration = [  ]
>   mDNS = False
>   mDNS.Configuration = False
>   Provider = [  ]
>
> The system:
> Arch Linux aarch64 on an RPi, kernel 5.4.65-1-ARCH, iwd 1.9-1, connman
> 1.38-1
> systemd 246.6-1-arch running in system mode. (+PAM +AUDIT -SELINUX -IMA
> -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ
> +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2
> default-hierarchy=hybrid)
>
> I get the same response on all Arch Linux systems: armv6 armv7 and x86_64.
> Also, if I reboot with nothing connected to the ethernet port, it will
> connect to the wifi SSID, but only at boot. If I connect the ethernet cable
> then ssh into it and type 'connmanctl scan wifi', the prompt does not
> return though the journalctl log shows that it did scan and that it did
> 'see' the SSID but it will not connect.
>
> Sep 28 10:28:09 gretarune connmand[211]: plugins/iwd.c:object_added()
> net.connman.iwd.Network /net/connman/iwd/0/3/73706733_psk
> Sep 28 10:28:05 gretarune connmand[211]:
> plugins/iwd.c:station_property_change() /net/connman/iwd/0/3 scanning 1
>
> If I restart connman it does reconnect to the SSID (systemctl restart
> connman). I tried adding imd.service to the After= line in the
> connman.service file and that made no change to the behavior.
>
> My connman.service file:
> [Unit]
> Description=Connection service
> DefaultDependencies=false
> Conflicts=shutdown.target
> RequiresMountsFor=/var/lib/connman
> After=dbus.service network-pre.target systemd-sysusers.service
> Before=network.target multi-user.target shutdown.target
> Wants=network.target
>
> [Service]
> Type=dbus
> BusName=net.connman
> Restart=on-failure
> ExecStart=/usr/bin/connmand -n -d plugins/iwd.c
> StandardOutput=null
> CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
> CAP_SYS_TIME CAP_SYS_MODULE CAP_SYS_ADMIN
> ProtectHome=true
> ProtectSystem=true
>
> [Install]
> WantedBy=multi-user.target
>
> Thanks for any help.
>
> Keith
>

Looking at this a bit more.  Arch patches connman-polkit.conf when  the
package is built. This is the patch:
$ cat allow_group_network.diff
--- a/src/connman-polkit.conf   2010-11-05 12:09:04.285423955 -0200
+++ b/src/connman-polkit.conf   2010-11-05 12:10:53.041423934 -0200
@@ -5,6 +5,9 @@
         <allow own="net.connman"/>
         <allow send_interface="net.connman.Agent"/>
     </policy>
+    <policy group="network">
+       <allow send_interface="net.connman.Agent"/>
+    </policy>
     <policy context="default">
         <allow send_destination="net.connman"/>
     </policy>

Could this be a culprit?

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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, Sep 28, 2020 at 5:43 AM Keith=
G &lt;<a href=3D"mailto:[email protected]";>[email protected]</a>&gt; wrot=
e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"l=
tr"><div dir=3D"ltr"><div><br> </div></div><br><div class=3D"gmail_quote"><=
div dir=3D"ltr" class=3D"gmail_attr">On Sun, Sep 27, 2020 at 8:24 PM KeithG=
 &lt;<a href=3D"mailto:[email protected]"; target=3D"_blank">ys3al35l@gmail=
.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex"><div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quo=
te"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Sep 24, 2020 at 7:56 AM K=
eithG &lt;<a href=3D"mailto:[email protected]"; target=3D"_blank">ys3al35l@=
gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div dir=3D"ltr"><div>Daniel,</div><div><br></div><div>I pulled =
the latest connman and was able to run monitor-connman. The attached log is=
 what I got when I:</div><div>1) stopped connman</div><div>2) started connm=
an</div><div>3) turned off the radio</div><div>4) waited until my phone and=
 other devices were online with that SSID</div><div>5) typed &#39;connmanct=
l scan wifi&#39; got no return <br></div><div>6) typed ctrl c</div><div>7) =
typed &#39;connmanctl services&#39;</div><div><br></div><div>I noted that a=
fter I initiated the scan even though connman reported nothing, it had alre=
ady begun the connection and connected. We have noticed that if we type &#3=
9;iwctl station wlan0 scan&#39; or, apparently &#39;connmanctl scan wifi&#3=
9; that it will initiate and complete a scan. I wonder if the fact that con=
nman 1.38 never returns with a scan complete message is a hint? The monitor=
-connman.txt is what showed in the terminal when I ran the script. The moni=
tor-connman-journal.txt is what appeared in the journal for u- connman. At =
the same time the journalctl -iwd shows this:</div><div><br></div><div>Sep =
24 07:29:14 keith-dell iwd[405]: Received Deauthentication event, reason: 3=
, from_ap: false<br>Sep 24 07:39:08 keith-dell iwd[405]: Received Deauthent=
ication event, reason: 3, from_ap: true<br>Sep 24 07:39:08 keith-dell iwd[4=
05]: Connected BSS not in scan results<br>Sep 24 07:39:08 keith-dell iwd[40=
5]: authentication timed out<br></div><div><br></div><div>Is there some sor=
t of timing problem?</div><div><br></div><div>Keith<br></div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Sep 23=
, 2020 at 2:18 AM Daniel Wagner &lt;<a href=3D"mailto:[email protected]"; targe=
t=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex">On Tue, Sep 22, 2020 at 08:59:57AM -0500, KeithG=
 wrote:<br>
&gt; I cannot find the monitor-iwd script.<br>
<br>
This script is part of the iwd sources. <br>
<br>
&gt; I found the monitor-connman script,<br>
&gt; but when I try to run the monitor-connman script, I get a gobject erro=
r:<br>
&gt; <br>
&gt; $ ./monitor-connman<br>
&gt; Traceback (most recent call last):<br>
&gt;=C2=A0 =C2=A0File &quot;./monitor-connman&quot;, line 3, in &lt;module&=
gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0import gobject<br>
&gt; ModuleNotFoundError: No module named &#39;gobject&#39;<br>
<br>
The Python support for GLib gobject was always a bit troublesome and it<br>
seems it aged really badly.<br>
<br>
&gt; This is even though I believe that python-gobject is installed and I c=
an<br>
&gt; run the hello.py script on this page:<br>
&gt; <a href=3D"https://pygobject.readthedocs.io/en/latest/getting_started.=
html" rel=3D"noreferrer" target=3D"_blank">https://pygobject.readthedocs.io=
/en/latest/getting_started.html</a><br>
&gt; python 3.8.5 and<br>
&gt; $ pacman -Q | grep gobject<br>
&gt; gobject-introspection 1.66.0-1<br>
&gt; gobject-introspection-runtime 1.66.0-1<br>
&gt; pygobject-devel 3.36.1-1<br>
&gt; python-gobject 3.36.1-1<br>
<br>
I have the same problem with Python 3 on my distro. It still works with<br>
Python 2. The test script need to use the dynamic version of the GLib<br>
binding. See the other patch.<br>
<br>
&gt; I am now running on a pretty common dell laptop with an intel wifi car=
d and<br>
&gt; get the same behavior. iwd 1.9 connman 1.38. I connected via connman t=
hen<br>
&gt; powered down the radio on the router then back on then had to reconnec=
t by<br>
&gt; typing in teh password.=C2=A0 The journal of this event is attached.<b=
r>
&gt; <br>
&gt; I did notice that in order to reconnect on this laptop (Arch Linux x86=
_64)<br>
&gt; that I had to type in the password again though I was just connected b=
efore<br>
&gt; I turned off the SSID. The journal running /usr/bin/connmand -n -d<br>
&gt; plugins/iwd.c:src/service.c though this event is attached.<br>
<br>
I&#39;ll try to reproduce it later.<br>
<br>
Thanks,<br>
Daniel<br></blockquote></div></blockquote><div><br></div><div>I see this wi=
th all my Arch Linux installs. I made a basic install on an RPi with nothin=
g but the base system and connman and iwd and a few other programs. When I =
use connman to manage the wifi interface and run ./monitor-iwd, nothing eve=
r displays even when the wifi goes down. I&#39;d show the tect capture, but=
 it is blank. When I run systemd-networks/dhcpcd with iwd, and have the net=
work go down, I get a lot of messages and it reconnects when the radio come=
s back online:</div><div># ./monitor-iwd<br>{Station} [/net/connman/iwd/0/3=
] State =3D disconnected<br>{Network} [/net/connman/iwd/0/3/73706733_psk] C=
onnected =3D False<br>{Station} [/net/connman/iwd/0/3] Scanning =3D True<br=
>{Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/52756e65417564696f=
4150_psk]<br>{Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/415454=
6a435336706932_psk]<br>{Removed net.connman.iwd.Network} [/net/connman/iwd/=
0/3/4e4554474541525f455854_open]<br>{Removed net.connman.iwd.Network} [/net=
/connman/iwd/0/3/456476656e7475726573_psk]<br>{Removed net.connman.iwd.Netw=
ork} [/net/connman/iwd/0/3/4e4554474541523938_psk]<br>{Removed net.connman.=
iwd.Network} [/net/connman/iwd/0/3/73706733_psk]<br>{Removed net.connman.iw=
d.Network} [/net/connman/iwd/0/3/4d65617374657761_psk]<br>{Removed net.conn=
man.iwd.Network} [/net/connman/iwd/0/3/456476656e747572657333_psk]<br>{Remo=
ved net.connman.iwd.Network} [/net/connman/iwd/0/3/73706732_psk]<br>{Remove=
d net.connman.iwd.Network} [/net/connman/iwd/0/3/415454785a4951347761_psk]<=
br>{Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/486f757365537461=
726b3031_psk]<br>{Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/45=
6c4a656665_psk]<br>{Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/=
426964656e486172726973_psk]<br>{Removed net.connman.iwd.Network} [/net/conn=
man/iwd/0/3/4d4f544f524f4c412d4645304431_psk]<br>{Removed net.connman.iwd.N=
etwork} [/net/connman/iwd/0/3/415454654865544b4932_psk]<br>{Removed net.con=
nman.iwd.Network} [/net/connman/iwd/0/3/4e4554474541523633_psk]<br>{Removed=
 net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e41_psk]<br>{Station=
} [/net/connman/iwd/0/3] Scanning =3D False<br>{Station} [/net/connman/iwd/=
0/3] Scanning =3D True<br>{Added net.connman.iwd.Network} [/net/connman/iwd=
/0/3/52756e65417564696f4150_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D RuneAudio=
AP<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=A0 =C2=A0 Devi=
ce =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added =
net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e41_psk]<br>=C2=A0 =
=C2=A0 =C2=A0 Name =3D HANNA<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br=
>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=
=A0 Type =3D psk<br>{Added net.connman.iwd.Network} [/net/connman/iwd/0/3/4=
56c4a656665_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D ElJefe<br>=C2=A0 =C2=A0 =
=C2=A0 Connected =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/=
iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added net.connman.iwd.Netw=
ork} [/net/connman/iwd/0/3/486f757365537461726b3031_psk]<br>=C2=A0 =C2=A0 =
=C2=A0 Name =3D HouseStark01<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br=
>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=
=A0 Type =3D psk<br>{Added net.connman.iwd.Network} [/net/connman/iwd/0/3/4=
e4554474541523633_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D NETGEAR63<br>=C2=A0=
 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/=
connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added net.connman.=
iwd.Network} [/net/connman/iwd/0/3/456476656e7475726573_psk]<br>=C2=A0 =C2=
=A0 =C2=A0 Name =3D Edventures<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<=
br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =
=C2=A0 Type =3D psk<br>{Added net.connman.iwd.Network} [/net/connman/iwd/0/=
3/4e4554474541523938_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D NETGEAR98<br>=C2=
=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /n=
et/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added net.connm=
an.iwd.Network} [/net/connman/iwd/0/3/415454654865544b4932_psk]<br>=C2=A0 =
=C2=A0 =C2=A0 Name =3D ATTeHeTKI2<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D Fal=
se<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0=
 =C2=A0 Type =3D psk<br>{Added net.connman.iwd.Network} [/net/connman/iwd/0=
/3/4974204275726e73205768656e204950_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D I=
t Burns When IP<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=
=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D=
 psk<br>{Added net.connman.iwd.Network} [/net/connman/iwd/0/3/48414e4e4135_=
psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D HANNA5<br>=C2=A0 =C2=A0 =C2=A0 Connec=
ted =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=
=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added net.connman.iwd.Network} [/net/=
connman/iwd/0/3/456476656e747572657333_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =
=3D Edventures3<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=
=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D=
 psk<br>{Station} [/net/connman/iwd/0/3] Scanning =3D False<br>{Station} [/=
net/connman/iwd/0/3] Scanning =3D True<br>{Added net.connman.iwd.Network} [=
/net/connman/iwd/0/3/426964656e486172726973_psk]<br>=C2=A0 =C2=A0 =C2=A0 Na=
me =3D BidenHarris<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =
=C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =
=3D psk<br>{Station} [/net/connman/iwd/0/3] Scanning =3D False<br>{Station}=
 [/net/connman/iwd/0/3] Scanning =3D True<br>{Added net.connman.iwd.Network=
} [/net/connman/iwd/0/3/415454785a4951347761_psk]<br>=C2=A0 =C2=A0 =C2=A0 N=
ame =3D ATTxZIQ4wa<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =
=C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =
=3D psk<br>{Added net.connman.iwd.Network} [/net/connman/iwd/0/3/4d4f544f52=
4f4c412d4645304431_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D MOTOROLA-FE0D1<br>=
=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D=
 /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added net.co=
nnman.iwd.Network} [/net/connman/iwd/0/3/4e4554474541525f455854_open]<br>=
=C2=A0 =C2=A0 =C2=A0 Name =3D NETGEAR_EXT<br>=C2=A0 =C2=A0 =C2=A0 Connected=
 =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=
=A0 =C2=A0 =C2=A0 Type =3D open<br>{Station} [/net/connman/iwd/0/3] Scannin=
g =3D False<br>{Station} [/net/connman/iwd/0/3] Scanning =3D True<br>{Remov=
ed net.connman.iwd.Network} [/net/connman/iwd/0/3/4e4554474541525f455854_op=
en]<br>{Removed net.connman.iwd.Network} [/net/connman/iwd/0/3/4d4f544f524f=
4c412d4645304431_psk]<br>{Removed net.connman.iwd.Network} [/net/connman/iw=
d/0/3/48414e4e4135_psk]<br>{Added net.connman.iwd.Network} [/net/connman/iw=
d/0/3/73706733_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D spg3<br>=C2=A0 =C2=A0 =
=C2=A0 Connected =3D True<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/i=
wd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>=C2=A0 =C2=A0 =C2=A0 KnownNe=
twork =3D /net/connman/iwd/73706733_psk<br>{Added net.connman.iwd.Network} =
[/net/connman/iwd/0/3/73706732_psk]<br>=C2=A0 =C2=A0 =C2=A0 Name =3D spg2<b=
r>=C2=A0 =C2=A0 =C2=A0 Connected =3D False<br>=C2=A0 =C2=A0 =C2=A0 Device =
=3D /net/connman/iwd/0/3<br>=C2=A0 =C2=A0 =C2=A0 Type =3D psk<br>{Added net=
.connman.iwd.Network} [/net/connman/iwd/0/3/4e4554474541523336_psk]<br>=C2=
=A0 =C2=A0 =C2=A0 Name =3D NETGEAR36<br>=C2=A0 =C2=A0 =C2=A0 Connected =3D =
False<br>=C2=A0 =C2=A0 =C2=A0 Device =3D /net/connman/iwd/0/3<br>=C2=A0 =C2=
=A0 =C2=A0 Type =3D psk<br>{Station} [/net/connman/iwd/0/3] Scanning =3D Fa=
lse<br>{Station} [/net/connman/iwd/0/3] State =3D connecting<br>{Station} [=
/net/connman/iwd/0/3] ConnectedNetwork =3D /net/connman/iwd/0/3/73706733_ps=
k<br>{Network} [/net/connman/iwd/0/3/73706733_psk] Connected =3D True<br>{S=
tation} [/net/connman/iwd/0/3] State =3D connected<br>{KnownNetwork} [/net/=
connman/iwd/73706733_psk] LastConnectedTime =3D 2020-09-28T01:10:45Z</div><=
div><br></div><div>The attached journal shows this for downing the radio wh=
en connman was controlling the network. It ignores it. My guess is there is=
 some strange setting in Arch Linux which stops this from working when conn=
man is managing things. What more can I do to help? I see this same behavio=
r on my arm devices (RPis) and x86_64 full desktop installs. <br></div><div=
><br></div><div>Keith<br></div><div><br></div></div></div></blockquote><div=
>=C2=A0
<div>Daniel,</div><div><br></div><div>I woke up this morning and I think I =
get it now. I need to run monitor-iwd when I run networkd/dhcpcd and monito=
r-connman when connman is managing the connections. Well, with the same pro=
cess, this is the report from monitor-connman when connman is managing the =
interface (I am monitoring it over ssh by logging into the ethernet IP addr=
ess):</div><div><br></div><div># ./monitor-connman<br>{Service} [/net/connm=
an/service/wifi_b827eb52ccd0_73706732_managed_psk] Strength =3D 62<br>{Serv=
ice} [/net/connman/service/wifi_b827eb52ccd0_52756e65417564696f4150_managed=
_psk] Strength =3D 56<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_=
415454785a4951347761_managed_psk] Strength =3D 22<br>{Service} [/net/connma=
n/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk] Strength =3D 21=
<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_44617272656e333231_ma=
naged_psk] Strength =3D 15<br>{Service} [/net/connman/service/wifi_b827eb52=
ccd0_464249205375727665696c6c616e63652056616e_managed_psk] Strength =3D 15<=
br>{Service} [/net/connman/service/wifi_b827eb52ccd0_52756e65417564696f4150=
_managed_psk] Strength =3D 55<br>{Service} [/net/connman/service/wifi_b827e=
b52ccd0_41545458495849537069_managed_psk] Strength =3D 34<br>{Service} [/ne=
t/connman/service/wifi_b827eb52ccd0_486f757365537461726b3031_managed_psk] S=
trength =3D 19<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_456c4a6=
56665_managed_psk] Strength =3D 19<br>{Service} [/net/connman/service/wifi_=
b827eb52ccd0_4154546a435336706932_managed_psk] Strength =3D 19<br>{Service}=
 [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_managed_psk] St=
rength =3D 19<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4e455447=
4541523633_managed_psk] Strength =3D 20<br>{Service} [/net/connman/service/=
wifi_b827eb52ccd0_456476656e747572657333_managed_psk] Strength =3D 19<br>{S=
ervice} [/net/connman/service/wifi_b827eb52ccd0_44617272656e333231_managed_=
psk] Strength =3D 18<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4=
e4554474541523336_managed_psk] Strength =3D 15<br><b>{Service} [/net/connma=
n/service/wifi_b827eb52ccd0_73706733_managed_psk] State =3D association<br>=
{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Sta=
te =3D configuration<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_7=
3706733_managed_psk] Ethernet =3D { Method=3Dauto Interface=3Dwlan0 Address=
=3DB8:27:EB:52:CC:D0 MTU=3D1500 }<br>{Service} [/net/connman/service/wifi_b=
827eb52ccd0_73706733_managed_psk] Ethernet =3D { Method=3Dauto Interface=3D=
wlan0 Address=3DB8:27:EB:52:CC:D0 MTU=3D1500 }<br>{Service} [/net/connman/s=
ervice/wifi_b827eb52ccd0_73706733_managed_psk] Timeservers =3D [ ]<br>{Serv=
ice} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] State =
=3D ready<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_man=
aged_psk] Favorite =3D 1<br>{Service} [/net/connman/service/wifi_b827eb52cc=
d0_73706733_managed_psk] Domains =3D [ ]<br>{Service} [/net/connman/service=
/wifi_b827eb52ccd0_73706733_managed_psk] Proxy =3D { }<br>{Technology} [/ne=
t/connman/technology/wifi] Connected =3D 1</b><br><b>{Service} [/net/connma=
n/service/wifi_b827eb52ccd0_73706733_managed_psk] IPv6 =3D { Method=3Dauto =
Address=3D2600:1700:4320:6caf:ba27:ebff:fe52:ccd0 PrefixLength=3D64 Privacy=
=3Ddisabled }<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733=
_managed_psk] Domains =3D [ griders ]<br>{Service} [/net/connman/service/wi=
fi_b827eb52ccd0_73706733_managed_psk] Timeservers =3D [ ]<br>{Service} [/ne=
t/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] IPv4 =3D { Method=
=3Ddhcp Address=3D192.168.2.41 Netmask=3D255.255.255.0 }<br>{Service} [/net=
/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Nameservers =3D [ =
192.168.2.3 xxxx:xxxx:xxxx:xxxx:ba27:ebff:fe0b:9be6 ]<br>{Service} [/net/co=
nnman/service/wifi_b827eb52ccd0_73706733_managed_psk] Domains =3D [ ]<br>{S=
ervice} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Times=
ervers =3D [ ]<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_7370673=
3_managed_psk] Timeservers =3D [ ]<br>{Service} [/net/connman/service/wifi_=
b827eb52ccd0_73706733_managed_psk] State =3D disconnect<br>{Service} [/net/=
connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Domains =3D [ ]<br>=
{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Pro=
xy =3D { }<br>{Technology} [/net/connman/technology/wifi] Connected =3D 0</=
b><br><b>{Service} [/net/connman/service/wifi_b827eb52ccd0_73706733_managed=
_psk] Timeservers =3D [ ]<br>{Service} [/net/connman/service/wifi_b827eb52c=
cd0_73706733_managed_psk] Timeservers =3D [ ]<br>{Service} [/net/connman/se=
rvice/wifi_b827eb52ccd0_73706733_managed_psk] State =3D idle<br>{Service} [=
/net/connman/service/ethernet_b827eb079985_cable] IPv4 =3D { Method=3Ddhcp =
Address=3D192.168.2.193 Netmask=3D255.255.255.0 }<br>{Service} [/net/connma=
n/service/ethernet_b827eb079985_cable] IPv4 =3D { Method=3Ddhcp Address=3D1=
92.168.2.193 Netmask=3D255.255.255.0 Gateway=3D192.168.2.1 }<br>{Service} [=
/net/connman/service/wifi_b827eb52ccd0_73706733_managed_psk] Nameservers =
=3D [ ]</b><br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4154545849=
5849537069_managed_psk] Strength =3D 15<br>{Service} [/net/connman/service/=
wifi_b827eb52ccd0_41545458495849537069_managed_psk] Strength =3D 33<br>{Ser=
vice} [/net/connman/service/wifi_b827eb52ccd0_41545458495849537069_managed_=
psk] Strength =3D 37<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4=
e4554474541523938_managed_psk] Strength =3D 25<br>{Service} [/net/connman/s=
ervice/wifi_b827eb52ccd0_456c4a656665_managed_psk] Strength =3D 22<br>{Serv=
ice} [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_managed_psk=
] Strength =3D 24<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4841=
4e4e41_managed_psk] Strength =3D 19<br>{Service} [/net/connman/service/wifi=
_b827eb52ccd0_415454654865544b4932_managed_psk] Strength =3D 15<br>{Service=
} [/net/connman/service/wifi_b827eb52ccd0_464249205375727665696c6c616e63652=
056616e_managed_psk] Strength =3D 17<br>{Service} [/net/connman/service/wif=
i_b827eb52ccd0_41545458495849537069_managed_psk] Strength =3D 33<br>{Servic=
e} [/net/connman/service/wifi_b827eb52ccd0_456476656e7475726573_managed_psk=
] Strength =3D 29<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4e45=
54474541523633_managed_psk] Strength =3D 21<br>{Service} [/net/connman/serv=
ice/wifi_b827eb52ccd0_456c4a656665_managed_psk] Strength =3D 20<br>{Service=
} [/net/connman/service/wifi_b827eb52ccd0_48414e4e41_managed_psk] Strength =
=3D 17<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_426964656e48617=
2726973_managed_psk] Strength =3D 17<br>{Service} [/net/connman/service/wif=
i_b827eb52ccd0_4e4554474541523336_managed_psk] Strength =3D 17<br>{Service}=
 [/net/connman/service/wifi_b827eb52ccd0_415454654865544b4932_managed_psk] =
Strength =3D 19<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_415454=
785a4951347761_managed_psk] Strength =3D 19<br>{Service} [/net/connman/serv=
ice/wifi_b827eb52ccd0_4154546a435336706932_managed_psk] Strength =3D 16<br>=
{Service} [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523938_manage=
d_psk] Strength =3D 18<br>{Service} [/net/connman/service/wifi_b827eb52ccd0=
_456476656e747572657333_managed_psk] Strength =3D 16<br>{Service} [/net/con=
nman/service/wifi_b827eb52ccd0_4d65617374657761_managed_psk] Strength =3D 1=
6<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_46424920537572766569=
6c6c616e63652056616e_managed_psk] Strength =3D 16<br>{Service} [/net/connma=
n/service/wifi_b827eb52ccd0_41545458495849537069_managed_psk] Strength =3D =
36<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_456476656e747572657=
3_managed_psk] Strength =3D 30<br>{Service} [/net/connman/service/wifi_b827=
eb52ccd0_48414e4e41_managed_psk] Strength =3D 20<br>{Service} [/net/connman=
/service/wifi_b827eb52ccd0_415454785a4951347761_managed_psk] Strength =3D 2=
3<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4e4554474541523633_m=
anaged_psk] Strength =3D 19<br>{Service} [/net/connman/service/wifi_b827eb5=
2ccd0_4154546a435336706932_managed_psk] Strength =3D 18<br>{Service} [/net/=
connman/service/wifi_b827eb52ccd0_456476656e747572657333_managed_psk] Stren=
gth =3D 19<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4e455447454=
1523336_managed_psk] Strength =3D 15<br>{Service} [/net/connman/service/wif=
i_b827eb52ccd0_4e4554474541523938_managed_psk] Strength =3D 17<br>{Service}=
 [/net/connman/service/wifi_b827eb52ccd0_4d65617374657761_managed_psk] Stre=
ngth =3D 15<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_4e45544745=
41525f455854_managed_none] Strength =3D 13<br><b>{Service} [/net/connman/se=
rvice/wifi_b827eb52ccd0_73706733_managed_psk] Strength =3D 44</b><br>{Servi=
ce} [/net/connman/service/wifi_b827eb52ccd0_73706732_managed_psk] Strength =
=3D 59<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_415454584958495=
37069_managed_psk] Strength =3D 37<br>{Service} [/net/connman/service/wifi_=
b827eb52ccd0_4e4554474541523633_managed_psk] Strength =3D 21<br>{Service} [=
/net/connman/service/wifi_b827eb52ccd0_456476656e747572657333_managed_psk] =
Strength =3D 20<br>{Service} [/net/connman/service/wifi_b827eb52ccd0_464249=
205375727665696c6c616e63652056616e_managed_psk] Strength =3D 17</div>

</div><div>(while typing this I notice that it scanned again, sees the SSID=
, but does not initiate a connection...</div><div><br></div><div>I can see =
in the log when I use the connmanctl interface to connect to the SSID then =
I can see it disconnect, then that it scans and &#39;sees&#39; it again, bu=
t it never re-connects even after it scans again. Looking at the difference=
 between the monitor-* logs, it looks like connman, somehow does not recogn=
ize that it knows that network.</div><div><br></div><div>When I query connm=
an, it looks like it is supposed to autoconnect:</div><div>connmanctl&gt; s=
ervices --properties wifi_b827eb52ccd0_73706733_managed_psk<br>/net/connman=
/service/wifi_b827eb52ccd0_73706733_managed_psk<br>=C2=A0 Type =3D wifi<br>=
=C2=A0 Security =3D [ psk ]<br>=C2=A0 State =3D idle<br>=C2=A0 Strength =3D=
 45<br>=C2=A0 Favorite =3D True<br>=C2=A0 Immutable =3D False<br>=C2=A0 <b>=
AutoConnect =3D True</b><br>=C2=A0 Name =3D spg3<br>=C2=A0 Ethernet =3D [ M=
ethod=3Dauto ]<br>=C2=A0 IPv4 =3D [ =C2=A0]<br>=C2=A0 IPv4.Configuration =
=3D [ Method=3Ddhcp ]<br>=C2=A0 IPv6 =3D [ =C2=A0]<br>=C2=A0 IPv6.Configura=
tion =3D [ Method=3Dauto, Privacy=3Ddisabled ]<br>=C2=A0 Nameservers =3D [ =
=C2=A0]<br>=C2=A0 Nameservers.Configuration =3D [ =C2=A0]<br>=C2=A0 Timeser=
vers =3D [ =C2=A0]<br>=C2=A0 Timeservers.Configuration =3D [ =C2=A0]<br>=C2=
=A0 Domains =3D [ =C2=A0]<br>=C2=A0 Domains.Configuration =3D [ =C2=A0]<br>=
=C2=A0 Proxy =3D [ =C2=A0]<br>=C2=A0 Proxy.Configuration =3D [ =C2=A0]<br>=
=C2=A0 mDNS =3D False<br>=C2=A0 mDNS.Configuration =3D False<br>=C2=A0 Prov=
ider =3D [ =C2=A0]</div><div><br></div><div>The system:<br></div><div>Arch =
Linux aarch64 on an RPi, kernel 5.4.65-1-ARCH, iwd 1.9-1, connman 1.38-1<br=
></div><div>systemd 246.6-1-arch running in system mode. (+PAM +AUDIT -SELI=
NUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +A=
CL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default=
-hierarchy=3Dhybrid)</div><div><br></div><div>I get the same response on al=
l Arch Linux systems: armv6 armv7 and x86_64. Also, if I reboot with nothin=
g connected to the ethernet port, it will connect to the wifi SSID, but onl=
y at boot. If I connect the ethernet cable then ssh into it and type &#39;c=
onnmanctl scan wifi&#39;, the prompt does not return though the journalctl =
log shows that it did scan and that it did &#39;see&#39; the SSID but it wi=
ll not connect. <br></div><div><br>Sep 28 10:28:09 gretarune connmand[211]:=
 plugins/iwd.c:object_added() net.connman.iwd.Network /net/connman/iwd/0/3/=
73706733_psk<br>Sep 28 10:28:05 gretarune connmand[211]: plugins/iwd.c:stat=
ion_property_change() /net/connman/iwd/0/3 scanning 1</div><div><br></div><=
div>If I restart connman it does reconnect to the SSID (systemctl restart c=
onnman). I tried adding imd.service to the After=3D line in the connman.ser=
vice file and that made no change to the behavior.</div><div><br></div><div=
>My connman.service file:</div><div>[Unit]<br>Description=3DConnection serv=
ice<br>DefaultDependencies=3Dfalse<br>Conflicts=3Dshutdown.target<br>Requir=
esMountsFor=3D/var/lib/connman<br>After=3Ddbus.service network-pre.target s=
ystemd-sysusers.service<br>Before=3Dnetwork.target multi-user.target shutdo=
wn.target<br>Wants=3Dnetwork.target<br><br>[Service]<br>Type=3Ddbus<br>BusN=
ame=3Dnet.connman<br>Restart=3Don-failure<br>ExecStart=3D/usr/bin/connmand =
-n -d plugins/iwd.c<br>StandardOutput=3Dnull<br>CapabilityBoundingSet=3DCAP=
_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SYS_TIME CAP_SYS_MODULE CAP=
_SYS_ADMIN<br>ProtectHome=3Dtrue<br>ProtectSystem=3Dtrue<br><br>[Install]<b=
r>WantedBy=3Dmulti-user.target</div><div><br></div><div>Thanks for any help=
.</div><div><br></div><div>Keith<br></div></div></div></blockquote><div><br=
></div><div>Looking at this a bit more.=C2=A0 Arch patches connman-polkit.c=
onf when=C2=A0 the package is built. This is the patch:</div><div>$ cat all=
ow_group_network.diff<br>--- a/src/connman-polkit.conf =C2=A0 2010-11-05 12=
:09:04.285423955 -0200<br>+++ b/src/connman-polkit.conf =C2=A0 2010-11-05 1=
2:10:53.041423934 -0200<br>@@ -5,6 +5,9 @@<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0&lt;allow own=3D&quot;net.connman&quot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0&lt;allow send_interface=3D&quot;net.connman.Agent&quot;/&gt;<=
br>=C2=A0 =C2=A0 =C2=A0&lt;/policy&gt;<br>+ =C2=A0 =C2=A0&lt;policy group=
=3D&quot;network&quot;&gt;<br>+ =C2=A0 =C2=A0 =C2=A0 &lt;allow send_interfa=
ce=3D&quot;net.connman.Agent&quot;/&gt;<br>+ =C2=A0 =C2=A0&lt;/policy&gt;<b=
r>=C2=A0 =C2=A0 =C2=A0&lt;policy context=3D&quot;default&quot;&gt;<br>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&lt;allow send_destination=3D&quot;net.connm=
an&quot;/&gt;<br>=C2=A0 =C2=A0 =C2=A0&lt;/policy&gt;</div><div><br></div><d=
iv>Could this be a culprit?<br></div></div></div>

--000000000000df1e6205b07a5574--

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

Subject: Digest Footer

_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]


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

End of connman Digest, Vol 59, Issue 31
***************************************

Reply via email to