AnsweredAssumed Answered

wifi driver

Question asked by dan zhou on Mar 20, 2012
Latest reply on Nov 22, 2012 by phuongdangminh
The default wifi driver of the system is ar6000, but I want to use the 8686 device. How to configure the system? I have configured the kernel and the kernel can load 8686 drive corretly. I also modified the , init.rc ,wifi.c  In device/fsl/imx53_logo/  #WIFI_DRIVER_MODULE_NAME := "ar6000" #WPA_SUPPLICANT_VERSION := VER_0_6_ATHEROS WPA_SUPPLICANT_VERSION := VER_0_6_X #BOARD_WLAN_ATHEROS_SDK := system/wlan/atheros/AR6kSDK #BOARD_WPA_SUPPLICANT_DRIVER := AR6000 BOARD_WLAN_CHIP_AR6102 := true BOARD_WLAN_CHIP_AR6003 := true BOARD_WPA_SUPPLICANT_DRIVER := WEXT # Select Wake on wireless mode for AR6003 suspend/resume policy BOARD_WLAN_PM_SUSPEND := 2  In the device/fsl/imx53_logo/Init.rc, I commented out the sentences.  #service wpa_supplicant /system/bin/wlan_tool wpa_supplicant # socket wpa_wlan0 dgram 660 root wifi # disabled # oneshot  #service wlan_tool /system/bin/wlan_tool # oneshot  In the device/fsl/imx5x/init.rc, I modified some places.  # give system access to wpa_supplicant.conf for backup and restore mkdir /system/etc/wifi 0770 wifi wifi chmod 0770 /system/etc/wifi chmod 0660 /system/etc/wifi/wpa_supplicant.conf chown wifi wifi /system/etc/wifi/wpa_supplicant.conf  #wpa_supplicant control socket for android wifi.c (android private socket) mkdir /data/misc/wifi 0770 wifi wifi mkdir /data/misc/wifi/sockets 0770 wifi wifi chmod 0770 /data/misc/wifi chmod 0660 /data/misc/wifi/wpa_supplicant.conf chown wifi wifi /data/misc/wifi chown wifi wifi /data/misc/wifi/wpa_supplicant.conf  service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -iwlan0 -c /system/etc/wifi/wpa_supplicant.conf socket wpa_wlan0 dgram 660 wifi wifi group system wifi inet disabled oneshot  In the hardware\libhardware_legacy\wifi\wifi.c, I modified some places.  #else /* ATHENV */  #ifndef WIFI_DRIVER_MODULE_PATH #define WIFI_DRIVER_MODULE_PATH "/system/lib/modules/libertas_sdio.ko" #endif #ifndef WIFI_DRIVER_MODULE_NAME #define WIFI_DRIVER_MODULE_NAME "libertas_sdio" #endif #ifndef WIFI_DRIVER_MODULE_ARG #define WIFI_DRIVER_MODULE_ARG "" #endif #ifndef WIFI_FIRMWARE_LOADER #define WIFI_FIRMWARE_LOADER "" #endif #define WIFI_TEST_INTERFACE "wlan0"  #endif  In the external\wpa_supplicant_6\wpa_supplicant\wpa_supplicant.conf, I modified some place.  ctrl_interface=wlan0  I think the system use the Android private socket, but I am not sure.  After I run the system, the error come out. I have attached the log file. Thanks!