Hi,
I am porting sd8688 wifi module to froyo on pxa3xx based board. While selecting option Wi-Fi from "Wireless & networks" in Android, the driver & firmare is loaded well after that this option got deselected with error.
While looking on the external/wpa_supplicant package, I have doubt with following piece of code from wpa_ctrl_open(const char *ctrl_path) which belongs to wpa_ctrl.c file
if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest,
sizeof(ctrl->dest)) < 0) {
close(ctrl->s);
unlink(ctrl->local.sun_path);
os_free(ctrl);
LOGE("wpa_ctrl_open (5)");
return NULL;
}
logcat details
=============
[ 189.508299] calling lbs_init_module+0x0/0xdc [libertas] @ 861
[ 189.514760] initcall lbs_init_module+0x0/0xdc [libertas] returned 0 after 8 usecs
[ 190.076393] calling if_sdio_init_module+0x0/0x10c [libertas_sdio] @ 861
[ 190.083400] libertas_sdio: Libertas SDIO driver
[ 190.087904] libertas_sdio: Copyright Pierre Ossman
[ 190.094414] libertas_sdio mmc1:0001:1: firmware: requesting sd8688_helper.bin
[ 190.170002] init: untracked pid 1072 exited
[ 190.202575] libertas_sdio mmc1:0001:1: firmware: requesting sd8688.bin
[ 190.548485] init: untracked pid 1075 exited
[ 191.529540] libertas: 00:27:13:82:f5:d2, fw 10.38.1p25, cap 0x00000303
[ 191.551094] libertas: wlan0: Marvell WLAN 802.11 adapter
[ 191.560391] initcall if_sdio_init_module+0x0/0x10c [libertas_sdio] returned 0 after 1442302 usecs
D/Tethering( 828): wlan0 is not a tetherable iface, ignoring
D/skia ( 828): purging 149K from font cache [18 entries]
D/dalvikvm( 828): GC_EXPLICIT freed 1956 objects / 154824 bytes in 124ms
D/WifiService( 828): ACTION_BATTERY_CHANGED pluggedType: 0
E/Wpa_supplicant_code( 828): wpa_ctrl_open (3)ctrl_path=/data/system/wpa_supplicant/wlan0
E/Wpa_supplicant_code( 828): wpa_ctrl_open (5)dest.sun_path=/data/system/wpa_supplicant/wlan0 sizeof(ctrl->dest.sun_path)=108 ctrl_path=/data/system/wpa_supplicant/wlan0
E/Wpa_supplicant_code( 828): wpa_ctrl_open (6)ctrl->s=16 &ctrl->dest=c05b2 sizeof(ctrl->dest)=110
E/Wpa_supplicant_code( 828): wpa_ctrl_open (5)
E/WifiHW ( 828): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
E/wpa_supplicant( 1082): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1082): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1082): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1082): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1082): CTRL-EVENT-STATE-CHANGE id=-1 state=0
[ 197.630222] pxa2xx-mci pxa2xx-mci.0: unable to stop clock
E/wpa_supplicant( 1088): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1088): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1088): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1088): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1088): CTRL-EVENT-STATE-CHANGE id=-1 state=0
E/WifiHW ( 828): Supplicant not running, cannot connect
D/skia ( 895): purging 72K from font cache [10 entries]
D/dalvikvm( 895): GC_EXPLICIT freed 9869 objects / 476880 bytes in 180ms
E/wpa_supplicant( 1091): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1091): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1091): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1091): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1091): CTRL-EVENT-STATE-CHANGE id=-1 state=0
E/WifiHW ( 828): Supplicant not running, cannot connect
E/wpa_supplicant( 1094): Failed to initialize control interface 'DIR=/data/system/wpa_supplicant GROUP=system'.
E/wpa_supplicant( 1094): You may have another wpa_supplicant process already running or the file was
E/wpa_supplicant( 1094): left by an unclean termination of wpa_supplicant in which case you will need
E/wpa_supplicant( 1094): to manually remove this file before starting wpa_supplicant again.
I/wpa_supplicant( 1094): CTRL-EVENT-STATE-CHANGE id=-1 state=0
E/WifiHW ( 828): Supplicant not running, cannot connect
V/WifiStateTracker( 828): Supplicant died unexpectedly
D/WifiStateTracker( 828): Reset connections and stopping DHCP
D/WifiStateTracker( 828): Disabling interface
D/NetworkStateTracker( 828): setDetailed state, old =IDLE and new state=DISCONNECTED
D/ConnectivityService( 828): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 828): getMobileDataEnabled returning true
D/WifiStateTracker( 828): Reset connections and stopping DHCP
D/DataConnectionTracker( 891): enableApnType(default), isApnTypeActive = false and state = IDLE
D/DataConnectionTracker( 891): type not available
D/Tethering( 828): Tethering got CONNECTIVITY_ACTION
I/ActivityManager( 828): Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiver: pid=1097 uid=10009 gids={1015, 2001, 3003}
D/Tethering( 828): MasterInitialState.processMessage what=3
E/HierarchicalStateMachine( 828): TetherMaster - unhandledMessage: msg.what=3
D/WifiStateTracker( 828): Disabling interface
init.rc
=======
mkdir /data/misc/wifi 0770 wifi system
chown wifi system /data/misc/wifi
touch /data/misc/wifi/wpa_supplicant.conf
chmod 0660 /data/misc/wifi/wpa_supplicant.conf
chown wifi system /data/misc/wifi/wpa_supplicant.conf
mkdir /data/misc/wifi/sockets 0771 wifi system
chown wifi system /data/misc/wifi/sockets
chmod 0771 /data/misc/wifi/sockets
mkdir /data/misc/android 0770 wifi system
mkdir /data/system/wpa_supplicant 0770 wifi system
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
chmod 0770 /data/misc/dhcp
setprop wifi.interface wlan0
service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
user wifi system
group system
disabled
service dhcpcd /system/bin/dhcpcd -B wlan0
disabled
oneshot
With Regards
J.Balakrishnan