All of lore.kernel.org
 help / color / mirror / Atom feed
* Broadcom reconnect problems
@ 2021-03-24 23:16 KeithG
  2021-03-25 20:13 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: KeithG @ 2021-03-24 23:16 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 2531 bytes --]

I have been having problems getting my broadcom based cards to
reconnect when the disconnect is caused from the router side. It used
to be a problem with NetworkManager as well as connman, but something
recently happened with NM and now it reconnects in this scenario. When
I have connman managing and a broadcom card, any disconnect from the
router side will not reconnect.

I have 3 machines that I contrast. 1 x86 laptop with an intel card, 1
laptop with a brcmsmac card and 1 (a bunch) of raspberry pis with
brcmfmac cards. All will connect at boot time correctly. and the
laptops reconnect at resume correctly as well.

On the 2 laptops when NetworkManager is controlling things (Intel and
brsmac with the iwd backend) and I disconnect it from the router end,
they reconnect fine. When connman is controlling it, only the laptop
with the intel card will reconnect. When I run the test on the laptop
with the connman managing the brcmsmac card, all it does is this:

$ ./monitor-iwd
{Station} [/net/connman/iwd/0/7] State = disconnected
{Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
{Station} [/net/connman/iwd/0/7] Scanning = True
{Station} [/net/connman/iwd/0/7] State = connecting
{Station} [/net/connman/iwd/0/7] ConnectedNetwork =
/net/connman/iwd/0/7/73706733_psk
{Network} [/net/connman/iwd/0/7/73706733_psk] Connected = True
{Station} [/net/connman/iwd/0/7] State = disconnected
{Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
{Removed net.connman.iwd.Network}
[/net/connman/iwd/0/7/53756c6c6976616e2046616d696c79_psk]
{Removed net.connman.iwd.Network}
[/net/connman/iwd/0/7/415454385a7334464b33_psk]
{Removed net.connman.iwd.Network} [/net/connman/iwd/0/7/73706732_psk]
{Removed net.connman.iwd.Network} [/net/connman/iwd/0/7/4e4554474541523633_psk]
{Removed net.connman.iwd.Network}
[/net/connman/iwd/0/7/436f6e6e656374696e672e2e2e_psk]
{Removed net.connman.iwd.Network}
[/net/connman/iwd/0/7/4d4f544f524f4c412d4645304431_psk]
{Removed net.connman.iwd.Network}
[/net/connman/iwd/0/7/41545470666b766e4378_psk]
{Added net.connman.iwd.Network} [/net/connman/iwd/0/7/4e4554474541523332_psk]
      Name = NETGEAR32
      Connected = False
      Device = /net/connman/iwd/0/7
      Type = psk
{Station} [/net/connman/iwd/0/7] Scanning = False

Then it stops and nothing more happens. The output from monitor-iwd
looks very similar on the RPis running the brcmfmac card. It
disconnects but then never seems to re-scan and reconnect.

Keith

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Broadcom reconnect problems
  2021-03-24 23:16 Broadcom reconnect problems KeithG
@ 2021-03-25 20:13 ` Denis Kenzior
  2021-03-26  5:01   ` KeithG
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2021-03-25 20:13 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 3613 bytes --]

Hi Keith,

On 3/24/21 6:16 PM, KeithG wrote:
> I have been having problems getting my broadcom based cards to
> reconnect when the disconnect is caused from the router side. It used
> to be a problem with NetworkManager as well as connman, but something
> recently happened with NM and now it reconnects in this scenario. When
> I have connman managing and a broadcom card, any disconnect from the
> router side will not reconnect.

NM uses iwd's autoconnect now, so the behavior should be the same between 
iwd-standalone and NM+iwd.  I haven't really kept up with ConnMan...

> 
> I have 3 machines that I contrast. 1 x86 laptop with an intel card, 1
> laptop with a brcmsmac card and 1 (a bunch) of raspberry pis with
> brcmfmac cards. All will connect at boot time correctly. and the
> laptops reconnect at resume correctly as well.
> 
> On the 2 laptops when NetworkManager is controlling things (Intel and
> brsmac with the iwd backend) and I disconnect it from the router end,
> they reconnect fine. When connman is controlling it, only the laptop
> with the intel card will reconnect. When I run the test on the laptop
> with the connman managing the brcmsmac card, all it does is this:

brcmsmac and brcmfmac are really quite different drivers.  We probably would 
need a full iwmon trace + iwd debug log from both platforms...

> 
> $ ./monitor-iwd
> {Station} [/net/connman/iwd/0/7] State = disconnected
> {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
> {Station} [/net/connman/iwd/0/7] Scanning = True

What is a bit concerning is that Scanning goes to True but is never reset until 
after the disconnect.  This seems like a minor bug on our side...

> {Station} [/net/connman/iwd/0/7] State = connecting
> {Station} [/net/connman/iwd/0/7] ConnectedNetwork =
> /net/connman/iwd/0/7/73706733_psk

So from the iwd-monitor log it looks like you connect to '73706733_psk'

> {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = True
> {Station} [/net/connman/iwd/0/7] State = disconnected

We get disconnected and presumably scan at least once and don't find any 
existing networks...

> {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
> {Removed net.connman.iwd.Network}
> [/net/connman/iwd/0/7/53756c6c6976616e2046616d696c79_psk]
> {Removed net.connman.iwd.Network}
> [/net/connman/iwd/0/7/415454385a7334464b33_psk]
> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/7/73706732_psk]
> {Removed net.connman.iwd.Network} [/net/connman/iwd/0/7/4e4554474541523633_psk]
> {Removed net.connman.iwd.Network}
> [/net/connman/iwd/0/7/436f6e6e656374696e672e2e2e_psk]
> {Removed net.connman.iwd.Network}
> [/net/connman/iwd/0/7/4d4f544f524f4c412d4645304431_psk]
> {Removed net.connman.iwd.Network}
> [/net/connman/iwd/0/7/41545470666b766e4378_psk]
> {Added net.connman.iwd.Network} [/net/connman/iwd/0/7/4e4554474541523332_psk]
>        Name = NETGEAR32
>        Connected = False
>        Device = /net/connman/iwd/0/7
>        Type = psk
> {Station} [/net/connman/iwd/0/7] Scanning = False
> 

Hmm, it shouldn't stop completely.  In theory it should scan after 10 seconds or 
so.  Can you try setting [Scan].MaximumPeriodicScanInterval to 15 in 
/etc/iwd/main.conf?

> Then it stops and nothing more happens. The output from monitor-iwd
> looks very similar on the RPis running the brcmfmac card. It
> disconnects but then never seems to re-scan and reconnect.
> 

Ok, we definitely need to see the logs to see what's happening.

https://iwd.wiki.kernel.org/debugging

Regards,
-Denis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Broadcom reconnect problems
  2021-03-25 20:13 ` Denis Kenzior
@ 2021-03-26  5:01   ` KeithG
  0 siblings, 0 replies; 3+ messages in thread
From: KeithG @ 2021-03-26  5:01 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 3994 bytes --]

On Thu, Mar 25, 2021 at 3:13 PM Denis Kenzior <denkenz@gmail.com> wrote:
>
> Hi Keith,
>
> On 3/24/21 6:16 PM, KeithG wrote:
> > I have been having problems getting my broadcom based cards to
> > reconnect when the disconnect is caused from the router side. It used
> > to be a problem with NetworkManager as well as connman, but something
> > recently happened with NM and now it reconnects in this scenario. When
> > I have connman managing and a broadcom card, any disconnect from the
> > router side will not reconnect.
>
> NM uses iwd's autoconnect now, so the behavior should be the same between
> iwd-standalone and NM+iwd.  I haven't really kept up with ConnMan...
>
> >
> > I have 3 machines that I contrast. 1 x86 laptop with an intel card, 1
> > laptop with a brcmsmac card and 1 (a bunch) of raspberry pis with
> > brcmfmac cards. All will connect at boot time correctly. and the
> > laptops reconnect at resume correctly as well.
> >
> > On the 2 laptops when NetworkManager is controlling things (Intel and
> > brsmac with the iwd backend) and I disconnect it from the router end,
> > they reconnect fine. When connman is controlling it, only the laptop
> > with the intel card will reconnect. When I run the test on the laptop
> > with the connman managing the brcmsmac card, all it does is this:
>
> brcmsmac and brcmfmac are really quite different drivers.  We probably would
> need a full iwmon trace + iwd debug log from both platforms...
>
> >
> > $ ./monitor-iwd
> > {Station} [/net/connman/iwd/0/7] State = disconnected
> > {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
> > {Station} [/net/connman/iwd/0/7] Scanning = True
>
> What is a bit concerning is that Scanning goes to True but is never reset until
> after the disconnect.  This seems like a minor bug on our side...
>
> > {Station} [/net/connman/iwd/0/7] State = connecting
> > {Station} [/net/connman/iwd/0/7] ConnectedNetwork =
> > /net/connman/iwd/0/7/73706733_psk
>
> So from the iwd-monitor log it looks like you connect to '73706733_psk'
>
> > {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = True
> > {Station} [/net/connman/iwd/0/7] State = disconnected
>
> We get disconnected and presumably scan at least once and don't find any
> existing networks...
>
> > {Network} [/net/connman/iwd/0/7/73706733_psk] Connected = False
> > {Removed net.connman.iwd.Network}
> > [/net/connman/iwd/0/7/53756c6c6976616e2046616d696c79_psk]
> > {Removed net.connman.iwd.Network}
> > [/net/connman/iwd/0/7/415454385a7334464b33_psk]
> > {Removed net.connman.iwd.Network} [/net/connman/iwd/0/7/73706732_psk]
> > {Removed net.connman.iwd.Network} [/net/connman/iwd/0/7/4e4554474541523633_psk]
> > {Removed net.connman.iwd.Network}
> > [/net/connman/iwd/0/7/436f6e6e656374696e672e2e2e_psk]
> > {Removed net.connman.iwd.Network}
> > [/net/connman/iwd/0/7/4d4f544f524f4c412d4645304431_psk]
> > {Removed net.connman.iwd.Network}
> > [/net/connman/iwd/0/7/41545470666b766e4378_psk]
> > {Added net.connman.iwd.Network} [/net/connman/iwd/0/7/4e4554474541523332_psk]
> >        Name = NETGEAR32
> >        Connected = False
> >        Device = /net/connman/iwd/0/7
> >        Type = psk
> > {Station} [/net/connman/iwd/0/7] Scanning = False
> >
>
> Hmm, it shouldn't stop completely.  In theory it should scan after 10 seconds or
> so.  Can you try setting [Scan].MaximumPeriodicScanInterval to 15 in
> /etc/iwd/main.conf?
>
> > Then it stops and nothing more happens. The output from monitor-iwd
> > looks very similar on the RPis running the brcmfmac card. It
> > disconnects but then never seems to re-scan and reconnect.
> >
>
> Ok, we definitely need to see the logs to see what's happening.
>
> https://iwd.wiki.kernel.org/debugging
>
> Regards,
> -Denis
Denis,

I tried setting the MaximumPeriodicScanInterval to 15 and got no
change. I am currently building a current kernel with iwmon so I can
create a log.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-26  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 23:16 Broadcom reconnect problems KeithG
2021-03-25 20:13 ` Denis Kenzior
2021-03-26  5:01   ` KeithG

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.