Re: Connection loss (IWD HEAD with latest OWE / BSS selection patches) - brcmfmac driver

Martin Petzold
2024-10-25T12:33:38Z

Hi James,

Am 25.10.24 um 14:28 schrieb Martin Petzold:
> Hi James,
>
> Am 25.10.24 um 13:48 schrieb James Prestwood:
>> Hi Martin,
>>
>> On 10/25/24 4:10 AM, Martin Petzold wrote:
>>> Hi all,
>>>
>>> Am 25.10.24 um 12:12 schrieb Martin Petzold:
>>>> Hi all,
>>>>
>>>> I open a new thread for this one: During the last weeks I have seen
>>>> connection losses for 30+ minutes, sometimes even hours or just now
>>>> even forever (IWD HEAD with v2 OWE / BSS selection patches). Driver
>>>> is brcmfmac (NXP 6.1.36 kernel) and chip is BCM4339 (Laird LWB5).
>>>>
>>>> It happens in a) single router environment (WPA2-PSK; Touchstone
>>>> TG3442DE), and b) router + repeater environment (WPA2 CCMP;
>>>> Fritz!Box + Fritz!Repeater), and maybe also in the WPA3 OWE
>>>> Transition network (yesterday lost a connection again).
>>>
>>> I lost now again 2 of 10 devices in the WPA3 OWE network (with
>>> roaming). However, now they don't disappear all after a shorter
>>> while. It seems to be later.
>>>
>>> I also lost one device in a Router+Repeater WPA2 (CCMP) network. It
>>> is confirmed here on router side, that the device is disconnected.
>>> Since more than a day.
>>
>> We can't do anything without logs. If you suspect its the blacklist
>> you can lower the blacklist time down in main.conf:
>>
>> [Blacklist]
>> MaximumTimeout=5
>>
>> But logs would be best, we would be able to see if that is whats
>> happening or if its something else.
>>
>>
> I can also now see this on one of our local devices (which was
> connected to Ethernet and WiFi).
>
> Please find attached the log. The logs start at late 23rd with the
> image upgrade.
>
> I can see on our server side, that devices continuously connect and
> disconnect again (missed heartbeat = hard loss of websocket
> connection). I see some type of connection loop on client side too
> ("org.eclipse.jetty.websocket.api.UpgradeException: 0 null" caused by
> "java.util.concurrent.TimeoutException: DNS timeout 15000 ms"). Maybe
> it alternates between Ethernet and WiFi. You will understand better.
> Or the network is re-configured all the time.

Maybe also blacklisted on AP / router side because of this behaviour.

But I was also always wondering how your blacklisting works. Maybe you
could explain? Does this also take into account network connection
quality parameters?

>
> Here is my local status:
>
> tavla@tavla:~$ iwctl station wlan0 show
>                                  Station: wlan0
> --------------------------------------------------------------------------------
>
>   Settable  Property Value
> --------------------------------------------------------------------------------
>
>             Scanning no
>             State connecting
>             Connected network     XYZ
>             No IP addresses       Is DHCP client configured?
>
> tavla@tavla:~$ networkctl status
> ●        State: routable
>   Online state: unknown
>        Address: 192.168.178.178 on eth0
>                 2a0a:a549:da80:0:fadc:7aff:fe67:2e4 on eth0
>                 fe80::fadc:7aff:fe67:2e4 on eth0
>                 fe80::c2ee:40ff:fe8a:dd62 on wlan0
>        Gateway: 192.168.178.1 on eth0
>                 fe80::3a10:d5ff:fe37:2c79 on eth0
>            DNS: 192.168.178.1
>            NTP: 192.168.178.1
> IDX LINK  TYPE     OPERATIONAL SETUP
>   1 lo    loopback carrier     unmanaged
>   2 eth0  ether    routable    configured
>   3 wlan0 wlan     no-carrier  unmanaged
>
> 3 links listed.
>
>>>
>>>>
>>>> We have 100% reproducable builds, test environments (testing
>>>> sites), and web socket-based telemetry. Thus my feeling is, there
>>>> is still something wrong with the BSS selection (maybe
>>>> blacklisting)! Of course this can also be something about the
>>>> driver (brcmfmac) or firmware (roaming?). Or can this be about IPv6
>>>> disabled (my configuration below)?
>>>>
>>>> This is really really serious, I (still) lose connections to devices!
>>>>
>>>> I will investigate further and provide logs later today, if possible.
>>>>
>>>> SETUP:
>>>>
>>>> SoM: Variscite DART-IMX8M-PLUS
>>>> SoC: NXP i.MX8M Plus
>>>> Wi-Fi Chip: Laird Sterling LWB5 (Infineon CYW43353)
>>>> Antenna: Laird FlexPIFA
>>>> RootFS: Debian bookworm
>>>> Kernel: NXP Kernel 6.1.36 (with Variscite patches)
>>>> Driver: brcmfmac (from Kernel, only minor patches - device tree)
>>>> Firmware: Laird 12.29.0.22 (loaded via scripts)
>>>> Network Daemon: systemd-networkd 252.30
>>>> Wi-Fi Daemon: IWD 2.22+ (c459dc75c080dcbff6f9b9389344e11328dec411 +
>>>> OWE and BSS selection patches) + ELL 0.69
>>>> (7bed251f8020ef896043f008276f41cd13fdd43f)
>>>>
>>>> KERNEL:
>>>>
>>>> REPOSITORY=https://github.com/tavla/linux-imx.git (fork from
>>>> https://github.com/varigit/linux-imx)
>>>> BRANCH=lf-6.1.y_var03
>>>> COMMIT=a4b3cc1dbbb396284e501b938aa79d2dfd4f1a98
>>>>
>>>> FIRMWARE:
>>>>
>>>> summit-lwb5-etsi-firmware-12.29.0.22.tar.bz2
>>>>
>>>> From:
>>>> https://github.com/LairdCP/Sterling-LWB-and-LWB5-Release-Packages/releases/
>>>>
>>>> IWD
>>>>
>>>> -----
>>>>
>>>> [General]
>>>> EnableNetworkConfiguration=true
>>>>
>>>> [Network]
>>>> NameResolvingService=systemd
>>>> EnableIPv6=false
>>>>
>>>> [DriverQuirks]
>>>> OweDisable=brcmfmac
>>>>
>>>> -----
>>>>
>>>> Best regards,
>>>>
>>>> Martin
>>>>
>>>>