Wifi issues/disconnect using Apalix imx8x with BSP 5.2

Hi,

We are experiencing issues with the WiFi module on the Apalis imx8x module (on an Ixora board) running Yocto based on the BSP 5.2.0.
When using the WiFi connection, it works as expected. But after a while of use and some data transferred the following issues pop up in the kernel log and WiFI stops working until a reboot has happened:

[ 376.294262] 003: usb 2-1.1: mwifiex_cmd_timeout_func: Timeout cmd id = 0x107, act = 0x0
[ 376.294285] 003: usb 2-1.1: num_data_h2c_failure = 0
[ 376.294291] 003: usb 2-1.1: num_cmd_h2c_failure = 0
[ 376.294297] 003: usb 2-1.1: is_cmd_timedout = 1
[ 376.294302] 003: usb 2-1.1: num_tx_timeout = 0
[ 376.294308] 003: usb 2-1.1: last_cmd_index = 2
[ 376.294314] 003: usb 2-1.1: last_cmd_id: 07 01 a4 00 07 01 07 01 16 00
[ 376.294320] 003: usb 2-1.1: last_cmd_act: 00 00 00 00 00 00 00 00 00 00
[ 376.294326] 003: usb 2-1.1: last_cmd_resp_index = 1
[ 376.294332] 003: usb 2-1.1: last_cmd_resp_id: 07 81 a4 80 7f 80 07 81 16 80
[ 376.294337] 003: usb 2-1.1: last_event_index = 3
[ 376.294343] 003: usb 2-1.1: last_event: 58 00 58 00 58 00 58 00 58 00
[ 376.294349] 003: usb 2-1.1: data_sent=0 cmd_sent=0
[ 376.294356] 003: usb 2-1.1: ps_mode=1 ps_state=0
[ 378.182299] 003: usb 2-1.1: cmd_wait_q terminated: -110
[ 378.182334] 003: usb 2-1.1: getting data rate error
[ 378.183704] 000: usb 2-1.1: PREP_CMD: FW is in bad state
[ 378.183723] 000: usb 2-1.1: failed to get signal information
[ 378.204401] 002: usb 2-1.1: Ignore scan. Card removed or firmware in bad state
[ 378.204429] 002: usb 2-1.1: scan failed: -14
[ 378.205000] 002: usb 2-1.1: Ignore scan. Card removed or firmware in bad state
[ 378.205023] 002: usb 2-1.1: scan failed: -14
[ 378.205573] 002: usb 2-1.1: Ignore scan. Card removed or firmware in bad state

This happens on 2.4 and 5Ghz bands.

I was wondering if this is a known issue? The issue in this post seems similar: iMX8 Wifi Access point unreliable

Best regards,

Rik

Hello Rik,
Apparently we didn’t see this kind of issues in standard wifi client mode. Ccould you give us more details on how you are running the tests? Are you just doing test downloads or doing another specific test?
Also, could you tell us a little about your use case? Are you planning to just use wifi client mode, or are you also planning on using bluetooth? Any plans for AP mode?
Regards,
Rafael

Hello Rafael,

We have tested with downloading files and using SSH for remote terminal and debugging.
We only plan to use wifi client mode. AP mode is not planned but is a nice to have. BT is not used and currently turned off in rfkill.

If there are things I can test, please let me know.

Best regards,

Rik

Hi Rik,
There are no known issues related to pure wifi client mode right now. We will have to investigate this problem and maybe try to reproduce it before we can provide more information.
Regards,
Rafael