Q&A: How to fix Linux 3.5.7 BSP WiFi SDIO Module Error?

Document created by Yixing Kong Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode


When trying to mount his SDIO WiFi module (an Azurewave module containing a Marvel 88W8790)  in 4 bit mode, and got error


wifi module on iMX6 Smart SD dev board using the alpha kernel (3.5.7+3285970).


mwifiex_sdio mmc0:0001:1: WLAN FW is active

mwifiex_sdio mmc0:0001:1: mwifiex_cmd_timeout_func: Timeout cmd id (2004.239824) = 0xa9, 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: num_cmd_timeout = 1

mwifiex_sdio mmc0:0001:1: num_tx_timeout = 0

mwifiex_sdio mmc0:0001:1: last_cmd_index = 1

mwifiex_sdio mmc0:0001:1: last_cmd_resp_index = 0

mwifiex_sdio mmc0:0001:1: last_event_index = 0

mwifiex_sdio mmc0:0001:1: data_sent=1 cmd_sent=1

mwifiex_sdio mmc0:0001:1: ps_mode=1 ps_state=0




There are only two known issues with the SDHC driver as noted in the release notes and these don't seem to match.  The Linux Reference Manual states the operation of the SDIO was veriifed usign the AR6003.  My assumption is that this is the Silex module we have standardized on.  Was 4 bit mode verified using this module?


Does anyone have any idea what could be happening here?



L3.5.7 is an alpha release, and WiFi function is not stable. The test report shows that open WiFi issue exists.


Wifi module sometime can't work on mx6q_smd.

After insmod ath, ath6kl_core and ath6kl_sdio. Insert the wifi card, sometime(50%) will display


ath6kl: unable to read RX_LOOKAHEAD_VALID                                     

ath6kl: Unable to recv target info: -84                                       

ath6kl: Failed to init ath6kl core                                            

ath6kl_sdio: probe of mmc0:0001:1 failed with error -84   


reinsert the wifi card may solve the problem.

when execute "udhcpc -i wlan0", sometime (30%) will cause program exception. Sometime can't get the wlan0 ip(program hang).



Environment(OS,Platform,Driver, etc):

HW: MX6Q_SMD Num014 and Num017

MX6Q_ARD don't have this problem

SW: Kernel 3.5.7-1.0.0


Case ID: TGE-LV-WIFI-0043


Reproduce Steps:

#modprobe ath

#modprobe ath6kl_core

#modprobe ath6kl_sdio

insert the wifi card

# iwconfig wlan0 mode managed

# iwlist wlan0 scanning | grep MAD-wifi

#iwconfig wlan0 key 00112233445566778899123456

#iwconfig wlan0 essid MAD-wifi

#udhcpc -i wlan0


Attached MX6 ARD WiFi issue also.


[Kernel3.5.7_MX6QARD]Wifi:wifi card can't work during suspend and resume. 100%


Bug detailed description:

With wifi card inserted in the board. doing system suspend and resume test. wifi card can't work well after the system suspend and resume.

Always report : ath6kl: Unable to decrement the command credit count register: -84            

ath6kl: Unable to write to the device: -84                                    

ath6kl: bmi_write_memory for uart debug failed                                

ath6kl: Failed to boot hw in resume: -5         


Environment(OS,Platform,Driver, etc):

HW: MX6QARD -023

Only tried on this platform

SW: root@imx6qsabreauto:~# uname -a                                               

Linux imx6qsabreauto 3.5.7-1.0.0+3285970 #1 SMP PREEMPT Sat Jun 29 10:20:45 CDT

2013 armv7l GNU/Linux

Case ID:  TGE-LV-WIFI-1060 and TGE-LV-WIFI-1062


Reproduce Steps:

1. boot the kernel with wif card inserted

2. doing wifi stress test

3. doing suspend and resume