wifi: 88W8801: AP mode crash in sd8801_uapsta.bin firmware (Linux v5.4.yy)
Dear Community,
I'm testing the 88W8801 SoC based module. I'm trying to set it to AP mode.
Unfortunately with those verions of FW:
info: MWIFIEX VERSION: mwifiex 1.0 (14.76.36.p139) and 14.68.36.p146 the hostapd is not working (for the latter FW STA works, for former don't - I've reported this in the other mail).
How to reproduce:
-----------------
hostapd -d -B -i mlan0 /etc/hostapd.conf
Kernel:
Kernel 5.4.24 (stable tree)
Error:mwifiex_cmd_timeout_func: Timeout cmd id = 0xb1, act = 0x0 which corresponds to: HostCmd_CMD_UAP_BSS_START
More verbose output:
mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id = 0xb1, act = 0x0 mwifiex_sdio mmc0:0001:1: num_data_h2c_failure = 0 mwifiex_sdio mmc0:0001:1: num_cmd_h2c_failure = 0 mwifiex_sdio mmc0:0001:1: is_cmd_timedout = 1mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0mwifiex_sdio mmc0:0001:1: last_cmd_index = 4mwifiex_sdio mmc0:0001:1: last_cmd_id: 28 00 28 00 5b 00 b0 00 b1 00 mwifiex_sdio mmc0:0001:1: last_cmd_act: 13 00 13 00 01 00 01 00 00 00 mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 3 mwifiex_sdio mmc0:0001:1: last_cmd_resp_id: 28 80 28 80 5b 80 b0 80 28 80 mwifiex_sdio mmc0:0001:1: last_event_index = 4 mwifiex_sdio mmc0:0001:1: last_event: 00 00 0b 00 0a 00 0b 00 0a 00 mwifiex_sdio mmc0:0001:1: data_sent=0 cmd_sent=1 mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0mwifiex_sdio mmc0:0001:1: Failed to start the BSS mwifiex_sdio mmc0:0001:1: Failed to start APmwifiex_sdio mmc0:0001:1: ===mwifiex driverinfo dump start=== mwifiex_sdio mmc0:0001:1: info: MWIFIEX VERSION: mwifiex 1.0 (14.76.36.p139) mwifiex_sdio mmc0:0001:1: SDIO register dump start
Afteterward, any attempt to communicat with the module ends with:mwifiex_sdio mmc0:0001:1: PREP_CMD: FW is in bad state and reboot is required.
cat /etc/hostapd.conf
interface=mlan0
channel=1
driver=nl80211
ssid=imx6ullevk
auth_algs=1
ignore_broadcast_ssid=0
hw_mode=g
wpa=2
wpa_passphrase=foofoofoo
wpa_key_mgmt=WPA-PSK
There a document regarding using the STA mode for 88W8801 from NXP:
"How to integrate Linux driver of 88W8801 To i.MX6ULL-EVK And L5.4.70_2.3.0 BSP"
Written by:
NXP CAS-TIC Wireless MCU Team, Weidong Sun 05/16/2021
It uses similar FW version (p160 vs p146) - 14.68.36.p160, but only with STA working (the AP mode is not presented as working one - it is apparentlty not tested).
In the above document some proprietary (not mwifiex) wi-fi driver was used for the test.
Working STA for 14.68.36.p146 (and probably p160) is what I see with mwifiex driver.
I'm wondering if anybody managed to have the AP (hostapd) mode working with this SoC with any known FW version?
Thanks in advance for sharing the knowledge.
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: [email protected]