Hi all:
I am porting a USB WIFI on am3354. The main chip of wifi is rt5572. I have built the module rt5572sta.ko.
The linux kernel version is 3.2.0. The os version is android 4.1.2. In the BoardConfig.mk we modify like below
BOARD_HAVE_WIFI := true
BOARD_WPA_SUPPLICANT_DRIVER :=WEXT
WIFI_DRIVER_MODULE_PATH :="/system/lib/modules/rt5572sta.ko"
WIFI_DRIVER_MODULE_NAME :="rt5572sta"
WIFI_FIRMWARE_LOADER := ""
WPA_SUPPLICANT_VERSION := VER_0_8_X_TI
In the init.rc, we modify the service of wpa_supplicant like below
service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -iwlan0 -c /system/etc/wifi/wpa_supplicant.conf
group system wifi inet
disabled
oneshot
In the wpa_supplicant.conf, I modify like below
update_config=1
ctrl_interface=DIR=/data/system/wpa_supplicant
GROUP=wifi
ap_scan=1
When I turn on the wifi, I can scan the other WIFI AP. Then, I want to associate the other AP, it always in the connecting condition. In addition, I can not see the MAC address and the ip address at the WIFI Setting. Maybe someone can help me to solve this question.
Thanks all !
Rudolph