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

Martin Petzold
2024-11-04T00:52:19Z

Dear James,

Am 04.11.24 um 00:13 schrieb Martin Petzold:
> Dear James,
>
> Am 25.10.24 um 17:17 schrieb James Prestwood:
>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 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:
>>>>>>>>
>>>>>>>> [
>
> I am still losing devices. Sometimes they come back again, but mostly
> do not re-connect. I have observed the following:
>
> - Connection exists for several hours until about one day, or two.
> Then gone for several hours or mostly forever.
> - For FritzBox+FritzRepeater I have seen the connection coming back
> after like a day (here connection loss was also confirmed on router
> side!)
> - For the Aruba enterprise environment the connection never came back
> (until now no AP logs - waiting for an answer)
> - After reboot the connection comes back
> - It occurs only in an environment with multiple APs with same SSID
> (i.e. roaming environment), however my single AP environments have all
> strong signal
> - Some devices with identical configuration in this environment DO NOT
> get lost, those seem to have quite strong signal (maybe they don't roam)
> - Other devices in the same environment work without any problems
> (Intel+NetworkManager) and the APs are Aruba enterprise grade
> - I see almost the same in the Aruba enterprise environment, but ALSO
> in a FritzBox + FritzRepeater environment
> - We had a bug in our web socket connection, causing to many IWD
> requests. However, this was fixed. And why are all the other devices
> okay? Maybe co-incidence with roaming and anything related to dropping
> and re-connecting web socket connection.
>
> Please find attached my currently available debug logs (they are a few
> days old, but I am quite sure this is the connection loss situation).
> These logs are from the FritzBox+FritzRepeater environment. There are
> no brcmfmac messages (but also no special debug level configured here)!

After this there are no more log entries from IWD, but system us up. IWD
may have crashed or is there a deadlock?

If there is roaming, why does IWD do anything if brcmfmac should handle
roaming? Or does brcmfmac fail to roam?

>
> I have now also disabled WiFi power saving and will deploy to the
> environment...hoping the best.
>
> Maybe you could check the logs and have an idea?
>
> -----
>
> 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
> 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
>
> -----
>
> Thanks,
>
> Martin
>