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

Arend Van Spriel
2024-10-26T08:26:26Z

On October 25, 2024 5:17:17 PM James Prestwood <prestwoj@gmail.com> wrote:

> On 10/25/24 8:03 AM, Martin Petzold wrote:
>> Hi James,
>>
>> Also, I have debugging for BRCM enabled (CONFIG_BRCMDBG=y and
>> CONFIG_DEBUG_FS=y). It sounds strange if there is no output, even not
>> before.
>
> Maybe Arend has some idea of why userspace could send a CMD_CONNECT and
> get no associated CMD_CONNECT event?
>
> The fact that even manually connecting didn't work after this happened
> tells me the driver is "stuck". Did you try cycling the driver with
> modprobe?

Do you boot your kernel with these options "debug ignore_level"? So
CONFIG_BRCMDBG enables pr_debug() statement in the driver. However, you can
select the type of debug messages with the "debug" module parameter. As
mentioned earlier the bits are defined in debug.h.

#define BRCMF_TRACE_VAL 0x00000002
#define BRCMF_INFO_VAL 0x00000004
#define BRCMF_DATA_VAL 0x00000008
#define BRCMF_CTL_VAL 0x00000010
#define BRCMF_TIMER_VAL 0x00000020
#define BRCMF_HDRS_VAL 0x00000040
#define BRCMF_BYTES_VAL 0x00000080
#define BRCMF_INTR_VAL 0x00000100
#define BRCMF_GLOM_VAL 0x00000200
#define BRCMF_EVENT_VAL 0x00000400
#define BRCMF_BTA_VAL 0x00000800
#define BRCMF_FIL_VAL 0x00001000
#define BRCMF_USB_VAL 0x00002000
#define BRCMF_SCAN_VAL 0x00004000
#define BRCMF_CONN_VAL 0x00008000
#define BRCMF_BCDC_VAL 0x00010000
#define BRCMF_SDIO_VAL 0x00020000
#define BRCMF_MSGBUF_VAL 0x00040000
#define BRCMF_PCIE_VAL 0x00080000
#define BRCMF_FWCON_VAL 0x00100000

For this issue I suggest to use debug=0x9416. You could throw in FWCON bit
to see error messages in firmware.

Regards,
Arend