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. Re: wifi AP disconnect(disconnect reason code 1) (Deepu Paul)
----------------------------------------------------------------------
Date: Thu, 19 Dec 2019 12:51:47 +0000
From: Deepu Paul <[email protected]>
Subject: Re: wifi AP disconnect(disconnect reason code 1)
To: Daniel Wagner <[email protected]>
Cc: [email protected]
Message-ID:
<CADL1K3=yxtttxc9b5-yd6cqzpr9qrcrbzys-3rr_4fyvnug...@mail.gmail.com>
Content-Type: multipart/alternative;
boundary="000000000000e0bce7059a0e06ac"
--000000000000e0bce7059a0e06ac
Content-Type: text/plain; charset="UTF-8"
Hello,
Please let me know if you need more information.
Thanks
Deepu Paul
On Wed, Dec 18, 2019 at 12:54 PM Deepu Paul <[email protected]> wrote:
> Hi Daniel,
>
> Thank you for the answer.
>
> I am able to fix the issue with the attached patch.
>
> I have my board with connman service running for 2-3 days now and still
> that AP is connected with the patch fix(from the logs i can see it
> disconnected more than 50 times, but successfully reconnected by the auto
> scan).
> connmanctl> services
> *AO purpleline
> wifi_7804731c31f0_707572706c656c696e65_managed_psk
>
> Can you please review the patch?
>
> In the wifi.c, this is done in the interface_state
> case G_SUPPLICANT_STATE_DISCONNECTED:
> if (network != wifi->pending_network) {
> connman_network_set_connected(network, false);
> connman_network_set_associating(network, false);
> }
>
> but in my case when it disconnect with reason code 1, it enters in this
> state only like 90% of the times. That's why i am forcing connman network
> connected flag to false in the disconnect callback.
>
>
> Please let me know for more information's.
>
> Thanks
> Deepu Paul
>
>
>
> On Wed, Dec 18, 2019 at 9:46 AM Daniel Wagner <[email protected]> wrote:
>
>> Hi,
>>
>> On Fri, Dec 13, 2019 at 06:18:20PM +0000, Deepu Paul wrote:
>> > Hello,
>> >
>> > I am connected to a wifi AP, in every few minutes(around 30 minutes) i
>> get
>> > a disconnect call back
>> > (wifi.c, disconnect_reasoncode method)
>> > with reason code 1, but for first few attempts it reconnects
>> automatically
>> > to the same AP(just have that n/w as the favorite). It fails to connect
>> > after few successful reconnects.
>> >
>> > When i check the logs it is trying to do auto scan but not able to
>> > authenticate with the n/w.
>> >
>> > For all the successful reconnect i get the below logs but this is
>> missing
>> > for the failure scenario.
>> > wpa_supplicant[560]: wlansta0: SME: Trying to authenticate with
>> > 58:0a:20:5b:ec:ca (SSID='purpleline' freq=5220 MHz)
>> > wpa_supplicant[560]: wlansta0: Trying to associate with
>> 58:0a:20:5b:ec:ca
>> > (SSID='purpleline' freq=5220 MHz)
>>
>> That is what I would expect. wpa_supplicant should handle the reauth,
>> IIRC,
>>
>> > Found this issue with a Cisco router, seems they is re auth every few
>> > minute for this router.
>> > Can you please help me with this?
>> >
>> > I think i may need to add some conditional checks in
>> > static void interface_state(GSupplicantInterface *interface)
>> > {
>> > switch (wifi->disconnect_code) {
>> > case 1: /* Unspecified reason */
>> >
>> > }
>>
>> I think I know what you want to do. If you get a disconnect just try
>> to reconnect. This might not be correct, e.g. what if your credentials
>> have changed and you try the old ones again and again. Some networks
>> will then disable your account.
>>
>> The question is what happens if the reauth handled by wpa_supplicant
>> goes wrong.
>>
>> Thanks,
>> Daniel
>> _______________________________________________
>> connman mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>>
>
--000000000000e0bce7059a0e06ac
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hello,<div><br></div><div>Please let me know if you need m=
ore information.</div><div><br></div><div>Thanks</div><div>Deepu Paul</div>=
</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
On Wed, Dec 18, 2019 at 12:54 PM Deepu Paul <<a href=3D"mailto:pauldeepu=
[email protected]" target=3D"_blank">[email protected]</a>> wrote:<br></d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hi Da=
niel,<div><br></div><div>Thank you for the answer.</div><div><br></div><div=
>I am able to fix the issue=C2=A0with the attached patch.</div><div><br></d=
iv><div>I have my board with connman service running for 2-3 days now and s=
till that AP is connected with the patch fix(from the logs i can see it</di=
v><div>disconnected more than 50 times, but successfully reconnected by the=
auto scan).</div><div>=C2=A0 =C2=A0connmanctl> services</div><div>=C2=
=A0 =C2=A0 *AO purpleline =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 wifi_7804731c3=
1f0_707572706c656c696e65_managed_psk<br></div><div><br></div><div>Can you p=
lease review the patch?</div><div><br></div><div>In the wifi.c, this is don=
e in the interface_state</div><div>case G_SUPPLICANT_STATE_DISCONNECTED:<br=
></div><div>=C2=A0 =C2=A0 =C2=A0if (network !=3D wifi->pending_network) =
{</div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 connman_network_set_connected(net=
work, false);<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 connman_network_set_ass=
ociating(network, false);<br>=C2=A0 =C2=A0 =C2=A0}<div><br></div><div>but i=
n my case when it disconnect with reason code 1, it enters in this state on=
ly like 90% of the times. That's why i am forcing=C2=A0 connman network=
connected flag to false in the disconnect callback.</div><div><br></div><d=
iv><br></div><div>Please let me know for more information's.</div><div>=
<br></div><div>Thanks</div><div>Deepu Paul=C2=A0</div><div><br></div><div><=
br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gma=
il_attr">On Wed, Dec 18, 2019 at 9:46 AM Daniel Wagner <<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>> 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">Hi,<br>
<br>
On Fri, Dec 13, 2019 at 06:18:20PM +0000, Deepu Paul wrote:<br>
> Hello,<br>
> <br>
> I am connected to a wifi AP, in every few minutes(around 30 minutes) i=
get<br>
> a disconnect call back<br>
> (wifi.c, disconnect_reasoncode method)<br>
> with reason code 1, but for first few attempts it reconnects automatic=
ally<br>
> to the same AP(just have that n/w as the favorite). It fails to connec=
t<br>
> after few successful reconnects.<br>
> <br>
> When i check the logs it is trying to do auto scan but not able to<br>
> authenticate with the n/w.<br>
> <br>
> For all the successful reconnect i get the below logs but this is miss=
ing<br>
> for the failure scenario.<br>
> wpa_supplicant[560]: wlansta0: SME: Trying to authenticate with<br>
> 58:0a:20:5b:ec:ca (SSID=3D'purpleline' freq=3D5220 MHz)<br>
> wpa_supplicant[560]: wlansta0: Trying to associate with 58:0a:20:5b:ec=
:ca<br>
> (SSID=3D'purpleline' freq=3D5220 MHz)<br>
<br>
That is what I would expect. wpa_supplicant should handle the reauth, IIRC,=
<br>
<br>
> Found this issue with a Cisco router, seems they is re auth every few<=
br>
> minute for this router.<br>
> Can you please help me with this?<br>
> <br>
> I think i may need to add some conditional checks in<br>
> static void interface_state(GSupplicantInterface *interface)<br>
> {<br>
> switch (wifi->disconnect_code) {<br>
> case 1: /* Unspecified reason */<br>
> <br>
> }<br>
<br>
I think I know what you want to do. If you get a disconnect just try<br>
to reconnect. This might not be correct, e.g. what if your credentials<br>
have changed and you try the old ones again and again. Some networks<br>
will then disable your account.<br>
<br>
The question is what happens if the reauth handled by wpa_supplicant<br>
goes wrong.<br>
<br>
Thanks,<br>
Daniel<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>
</blockquote></div>
--000000000000e0bce7059a0e06ac--
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]
------------------------------
End of connman Digest, Vol 50, Issue 9
**************************************