Hi,
We have a product using TI AM3715+WG7310 and TI android 2.3.4 v2.1 package ( linux kernel 2.6.37) , and we enable off mode ( system power consumption<5mW )
So some power management issues happened. here are some questions related to wl1271 compat/mac80211:
1. The original wl1271_compat code have a know issue
"After connection drop WiFi doesn't connect to Acess Point automatically. User need to disconnect and connect again"
Is it solved already?
2. If 1 have patchs to solved, but still fail to work with off mode, so I porting mac80211 using TI_Android_GingerBread_2_3_4_WLAN_R4SP3_patch.tar
The patchs including hostapd,mac80211,wpa8...after this the off mode suspend/resume seems work find, the log look like
http://processors.wiki.ti.com/index.php/AM37x_Wireless_Connectivity_Suspend_Resume_Operation
But after multiple suspend/resume test, it fail to suspend because system is stay at linux suspend_prepare (earlysuspend passed, stay in usermodehelper_disable, but ieee80211_suspend never get called ),at this time, power button can't bring system to android screen again, I need to reset device.
The issue is not exist when I disable wifi, so I don't know what is the root cause? wl1271 driver, mac80211, or wpa? No know issues note for this package.
Are there any fix patchs for R4 for suspend/resume issue?
3. Now I try to porting compat-wireless R5_SP2, and R5 replace wpa/mac80211, I hope it can solve this problem
https://github.com/dickychiang
But after porting finished, I always get error when suspend , the log is:
~~~~~
wl1271 suspend. wow_enabled: 1
mmc : can't keep power while host is suspended
PM: some device fail to suspend: error -xx
~~~~
then system fail to suspend and enter suspend/resume loop...
Even I try to add MMC_PM_KEEP_POWER flag, the same error still occured.
The web http://processors.wiki.ti.com/index.php/AM37x_Wireless_Connectivity_Suspend_Resume_WOWLAN_Operation#Mode_of_Operation
not show how to disable wowlan, and I can't get wowlan work ( I didn't porting IW, so I don't know why wowlan is enabled by default ?)
So the last questions are:
1. how to make wowlan work? could wowlan mode work with off mode ( < 5mW) ?
2. If wowlan mode can't make off mode work, I need to know to disable/turnoff wowlan in R5 to make it work like R4 for off mode
Thanks