In rare cases, a custom board equipped with i.MX8MQ keeps failing to scan Wi-Fi.
If the scan is successful, the connection will be completed in about 10 seconds, but if an ABORT SCAN occurs, it will not return.
The wi-fi module we are using is 88W9098.
I have changed the moal log level to 2 and am analyzing it, but it doesn't seem to output any significant logs.
If anyone has solved a similar problem, please let me know how to solve it.
[ 11.428717] mlan: loading out-of-tree module taints kernel.
[ 11.454906] wlan: Loading MWLAN driver
[ 11.455385] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[ 11.455449] Attach moal handle ops, card interface type: 0x206
[ 11.456183] PCIE9098: init module param from usr cfg
[ 11.456231] card_type: PCIE9098, config block: 0
[ 11.456237] cfg80211_wext=0xf
[ 11.456241] wfd_name=p2p
[ 11.456245] max_vir_bss=1
[ 11.456249] cal_data_cfg=none
[ 11.456253] drv_mode = 7
[ 11.456256] ps_mode = 2
[ 11.456259] auto_ds = 2
[ 11.456263] fw_name=nxp/pcieuart9098_combo_v1.bin
[ 11.456270] host_mlme=enable
[ 11.456316] rx_work=1 cpu_num=4
[ 11.456331] Attach mlan adapter operations.card_type is 0x206.
[ 11.458146] Request firmware: nxp/pcieuart9098_combo_v1.bin
[ 12.026570] FW download over, size 618724 bytes
[ 12.552662] ddrc freq set to low bus mode
[ 12.890879] WLAN FW is active
[ 12.890904] on_time is 12888812952
[ 12.905158] fw_cap_info=0x81c3fa3, dev_cap_mask=0xffffffff
[ 12.905361] max_p2p_conn = 8, max_sta_conn = 64
[ 12.961013] ddrc freq set to high bus mode
[ 12.961124] wlan: version = PCIE9098--17.92.5.p3-MM5X17247.p5-GPL-(FP92)
[ 12.961726] wlan_pcie 0000:01:00.1: enabling device (0000 -> 0002)
[ 12.961795] Attach moal handle ops, card interface type: 0x206
[ 12.961889] PCIE9098: init module param from usr cfg
[ 12.961940] card_type: PCIE9098, config block: 1
[ 12.961947] cfg80211_wext=0xf
[ 12.961951] wfd_name=p2p
[ 12.961954] max_vir_bss=1
[ 12.961959] cal_data_cfg=none
[ 12.961962] drv_mode = 7
[ 12.961965] ps_mode = 2
[ 12.961968] auto_ds = 2
[ 12.961972] fw_name=nxp/pcieuart9098_combo_v1.bin
[ 12.961979] host_mlme=enable
[ 12.961994] rx_work=1 cpu_num=4
[ 12.962012] Attach mlan adapter operations.card_type is 0x206.
[ 12.966172] Request firmware: nxp/pcieuart9098_combo_v1.bin
[ 12.967101] WLAN FW already running! Skip FW download
[ 12.967112] WLAN FW is active
[ 12.967119] on_time is 12965036475
[ 12.969398] fw_cap_info=0x81c3fa3, dev_cap_mask=0xffffffff
[ 12.969427] max_p2p_conn = 8, max_sta_conn = 64
[ 12.988979] wlan: version = PCIE9098--17.92.5.p3-MM5X17247.p5-GPL-(FP92)
[ 12.989366] wlan: Driver loaded successfully
[ 14.187052] wlan: mlan0 START SCAN
[ 15.268701] ddrc freq set to low bus mode
[ 24.188103] wlan: ABORT SCAN start
[ 24.188330] IOCTL failed: 000000006991828c id=0x10000, sub_id=0x10003 action=1, status_code=0x80000007
[ 29.205726] wlan: mlan0 START SCAN
[ 33.511905] ddrc freq set to high bus mode
[ 34.596334] ddrc freq set to low bus mode
[ 39.207750] wlan: ABORT SCAN start
[ 39.207972] IOCTL failed: 00000000de34e17e id=0x10000, sub_id=0x10003 action=1, status_code=0x80000007
[ 43.751761] ddrc freq set to high bus mode
[ 44.222069] wlan: mlan0 START SCAN
[ 44.836336] ddrc freq set to low bus mode
[ 48.872768] ddrc freq set to high bus mode
[ 49.961326] ddrc freq set to low bus mode
[ 54.223771] wlan: ABORT SCAN start
[ 54.224010] IOCTL failed: 00000000dd8cf28c id=0x10000, sub_id=0x10003 action=1, status_code=0x80000007
[ 64.231817] ddrc freq set to high bus mode
[ 65.316338] ddrc freq set to low bus mode
[ 67.393538] ddrc freq set to high bus mode
已解决! 转到解答。
This case was due to memory corruption caused by an inadequate DRAM configuration.
The problem has now been resolved.
This ticket has served its purpose and is closed.
Hello,
Is the issue happening in the same custom board ? Could you please share the configuration settings you have ? According to the log you shared, you are using the latest version of this release, could you please help me confirm if you are and also are you using the default driver or are you using another driver ? Is there some pattern identified when the scan fails ?
Regards,
Estephania
Hi Estephania!
>Is the problem happening on the same custom board?
Yes, the problem is happening on the same custom board.
>Please let me know your configuration settings.
I am attaching my defconfig and dts.
The defconfig is almost unchanged from BSP (imx8mqevk).
>According to your log, you are using the latest version of this release, please confirm and tell me if you are using the default driver or some other driver.
I am not using the default driver.
The moal and pcieuart9098_combo_v1.bin are using Linux 5.10.72_2.2.0, as I initially suspected a driver problem.
However, the same phenomenon occurred with Linux 5.10.35_2.0.0.
>Is there any pattern when the scan fails?
There is no particular pattern when the scan fails.
When I start up moal and wpa_supplicant after the kernel starts, ABORT SCAN occurs evenly.
Hi.
>moal and pcieuart9098_combo_v1.bin, I first suspected a driver problem and used Linux 5.10.72_2.2.0.
Sorry, this is a mistake. When I got the first log, the mall and firmware version defaulted to 5.10.35_2.0.0.
It is still at 5.10.35_2.0.0.
I referred to UM11490 to get the moal and firmware logs.
I set the debug flag (drvbdg) for moal to 0x60000207.
The dmesg does not seem to have changed from the first log I posted.
In the firmware dump, there was a log in file_drv_info that I found interesting.
The value of num_cmd_assoc_failure is set to 1.
UM11490 does not have a detailed description of the dump file, so I don't know what this represents.
Does "num_cmd_assoc_failure = 1" have anything to do with ABORT SCAN?
I'm looking for clues to solve the problem, whatever it may be.
Any information is welcome.
Regards
Hello,
I have been checking this and I have not been able to reproduce it with my setup, we might need more details on this setup that you have. I already sent you a message directly, could you please help me check it ?
Regards,