public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Martin Petzold <martin.petzold@tavla.de>
Cc: Denis Kenzior <denkenz@gmail.com>, iwd@lists.linux.dev
Subject: Re: IWD 1.27 with brcmfmac not working for roaming
Date: Sat, 12 Oct 2024 13:51:38 +0200	[thread overview]
Message-ID: <e27b082f-15eb-412e-b1a5-292b17080cc4@broadcom.com> (raw)
In-Reply-To: <717feddd-8756-4271-8c05-5ef46ff9e8d2@tavla.de>

On 10/12/2024 1:06 PM, Martin Petzold wrote:
> Hi Arend,
> 
> Am 10.10.24 um 10:06 schrieb Martin Petzold:
>> Hi Arend,
>>
>> Am 09.10.24 um 18:50 schrieb Arend Van Spriel:
>>> On October 9, 2024 6:07:16 PM Denis Kenzior <denkenz@gmail.com> wrote:
>>>
>>>> Hi Martin,
>>>>
>>>> On 10/9/24 4:43 AM, Martin Petzold wrote:
>>>>> Hi
>>>>>
>>>>> PROBLEM
>>>>>
>>>>> We (still) have some trouble with IWD together with brcmfmac. We 
>>>>> updated
>>>>> firmware for the chip (Infineon CYW43353) to latest version 
>>>>> 11.171.0.24 and also
>>>>
>>>> Ugh :)  That stuff is known to be problematic.  You might want to 
>>>> involve Arend
>>>> in this discussion.
>>>
>>> Is this specifically related to WPA3 or in general? The version does 
>>> not tell me much and I don't have access to Infineon firmware to 
>>> examine. I do know there are two variants floating around regarding 
>>> WPA3-SAE support: 1) supplicant in firmware and 2) using EXT_AUTH. 
>>> The latter is supported in  downstream repo on github, but it has not 
>>> been done in upstream linux-wireless. I did post patches for testing 
>>> last month. 
>>
>> I was able to migrate to NXP kernel 6.1.36 with Debian bookworm rootfs 
>> containing IWD 2.3. I will try also to build IWD 2.22 later. If this 
>> setup / configuration makes sense I would go to roaming environments 
>> again. However, I have the following questions and please find the 
>> configuration and logs below:
>>
>> 1. Why does brcmfmac report "Using regulatory domain US" even though I 
>> have set "ccode=EU" and "regrev=116" in /lib/firmware/brcm/ 
>> brcmfmac4339-sdio.txt?
> 
> I had an entry in the device tree (laird,regdomain = "US"), which seems 
> to be stronger than the value in the brcmfmac4339-sdio.txt. Can you 
> confirm?
> 
> Now I don't get any output like "Using regulatory domain ..." any more. 
> How can I now be sure that EU (ETSI) is used?

I really have no clue. This is not in the upstream driver so I assume 
you are also using some Infineon flavor of the brcmfmac driver. That 
device tree entry is definitely not in the bindings specification.

>> 2. Is it the best approach to use firmware for Laird LWB5 / CYW43353 
>> from their Git repository (laird-lwb5-etsi-firmware-11.171.0.24.tar.bz2)?
> 
> Here I switched to newer version 12.29.0.22. I assume this firmware is 
> the correct one and should work with the Kernel brcmfmac driver 
> (6.1.36), right?

Sorry. No answer to that. I have no knowledge about distribution 
packages from Laird.

>> 3. If you say roaming can be handled by firmware (driver?) OR daemon 
>> (IWD), what is the best approach and how to configure it?
> 
> This question is still open for me. In general the question, will 
> brcmfmac work with the laird firmware and IWD stable (really good) also 
> for roaming?

In general it is best to let firmware take care of roaming. You can try 
using the module parameter 'roam_off' and see how well IWD takes care of 
roaming. I have never used IWD.

>> 4. Is it valid to always use brcm-patchram-plus to load the firmware 
>> on every boot?

What is brcm-patchram-plus?

>> 5. I see the following error (more log below). What is going wrong?
>>
>> Okt 10 09:38:19 tavla kernel: brcmfmac mmc0:0001:1: Direct firmware 
>> load for brcm/brcmfmac4339-sdio.variscite,imx8mp-var-dart.bin failed 
>> with error -2
>> Okt 10 09:38:19 tavla kernel: brcmfmac mmc0:0001:1: Direct firmware 
>> load for brcm/brcmfmac4339-sdio.clm_blob failed with error -2
>> Okt 10 09:38:19 tavla kernel: brcmfmac: brcmf_c_process_clm_blob: no 
>> clm_blob available (err=-2), device may have limited channels available

Nothing wrong here except that it does not find a clm_blob file.

> What about the "clm_blob". Is it required in file system for 4339? (I 
> don't want to have limited channels)

What channels are reported if you use the iw utility?

Regards,
Arend

  reply	other threads:[~2024-10-12 11:51 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-09  9:43 IWD 1.27 with brcmfmac not working for roaming Martin Petzold
2024-10-09 16:07 ` Denis Kenzior
2024-10-09 16:50   ` Arend Van Spriel
2024-10-09 17:54     ` Martin Petzold
2024-10-10  8:06     ` Martin Petzold
2024-10-12 11:06       ` Martin Petzold
2024-10-12 11:51         ` Arend van Spriel [this message]
2024-10-13 15:43           ` Martin Petzold
2024-10-30 19:19           ` Martin Petzold
2024-10-30 19:23             ` James Prestwood
2024-10-09 16:58   ` Arend Van Spriel
2024-10-10 13:20   ` Martin Petzold
2024-10-10 13:36     ` James Prestwood
2024-10-10 13:47       ` Martin Petzold
2024-10-10 13:55         ` James Prestwood
2024-10-11  8:35           ` Martin Petzold
2024-10-11 10:46             ` Martin Petzold
2024-10-12 10:59               ` Martin Petzold
2024-10-15 14:43   ` Martin Petzold
2024-10-15 15:17     ` Denis Kenzior
2024-10-15 19:13       ` Arend van Spriel
2024-10-16  2:04         ` Denis Kenzior
2024-10-16  8:32           ` Arend van Spriel
2024-10-17 10:58           ` Martin Petzold
2024-10-19 14:04             ` Martin Petzold
2024-10-19 14:41               ` Denis Kenzior
2024-10-21 13:34                 ` Martin Petzold
2024-10-21 14:40                   ` Arend Van Spriel
2024-10-21 14:53                     ` Martin Petzold
2024-10-21 15:23                     ` James Prestwood
2024-10-21 17:08                       ` Arend Van Spriel
2024-10-21 17:20                         ` Martin Petzold
2024-10-21 17:40                         ` Denis Kenzior
2024-10-21 18:26                           ` Arend van Spriel
2024-10-21 18:45                             ` Martin Petzold
2024-10-21 18:48                               ` Martin Petzold
2024-10-21 18:55                             ` Denis Kenzior
2024-10-21 19:08                               ` Jeremy Blum
2024-10-22 15:26                                 ` Denis Kenzior
2024-10-22 16:38                                   ` Jeremy Blum
2024-10-21 19:15                               ` Martin Petzold
2024-10-21 19:11                             ` James Prestwood
2024-10-21 20:23                             ` Martin Petzold
2024-10-22  6:08                               ` Arend Van Spriel
2024-10-21 22:01                             ` KeithG
2024-10-21 22:10                               ` Martin Petzold
2024-10-22 17:40                                 ` James Prestwood
2024-10-22 18:04                                   ` Martin Petzold
2024-10-22 18:21                                     ` Martin Petzold
2024-10-22 18:24                                     ` James Prestwood
2024-10-22 18:32                                       ` Martin Petzold
2024-10-22 18:44                                       ` Denis Kenzior
2024-10-22 18:47                                         ` Martin Petzold
2024-10-22 19:10                                           ` James Prestwood
2024-10-22 18:47                                         ` James Prestwood
2024-10-22 18:49                                           ` Martin Petzold
2024-10-22 18:52                                           ` Denis Kenzior
2024-10-23 12:02                             ` Martin Petzold
2024-10-23 12:13                               ` James Prestwood
2024-10-23 12:19                                 ` Martin Petzold
2024-10-23 13:22                                   ` James Prestwood
2024-10-23 13:34                                     ` Martin Petzold
2024-10-23 15:22                                     ` Martin Petzold
2024-10-23 15:27                                       ` Martin Petzold
2024-10-23 15:30                                         ` James Prestwood
2024-10-23 15:37                                           ` Martin Petzold
2024-10-23 15:28                                       ` James Prestwood
2024-10-23 15:11                               ` Arend Van Spriel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e27b082f-15eb-412e-b1a5-292b17080cc4@broadcom.com \
    --to=arend.vanspriel@broadcom.com \
    --cc=denkenz@gmail.com \
    --cc=iwd@lists.linux.dev \
    --cc=martin.petzold@tavla.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox