Hi,I read your wifi porting guide ,and followed it
but the error still appears--By the way the version I use is eclair
2.1-update1
E/WifiHW ( 708): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/sta": No such file or directory
Here is my porting flow:
1.
build/target/board/generic/BoardConfig.mk
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
I also try to add ------HAVE_CUSTOM_WIFI_DRIVER_2 := true,but it still
cannot work
2.
2.1 modify external/wpa_supplicant/common.c and set wpa_debug_level =
MSG_DEBUG
2.2 modify common.h and change #define wpa_printf from if ((level) >=
MSG_INFO) to if ((level) >= MSG_DEBUG)
3.
system/etc/wifi/wpa_supplicant.conf and data/misc/wifi/
wpa_supplicant.conf
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi
update_config=1
ap_scan=1
4.
init.rc
mkdir /system/etc/wifi 0777 wifi wifi
chmod 0777 /system/etc/wifi
chmod 0777 /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 0777 wifi wifi
mkdir /data/misc/wifi/sockets 0777 wifi wifi
chmod 0777 /data/misc/wifi
chmod 0777 /data/misc/wifi/wpa_supplicant.conf
chown wifi wifi /data/misc/wifi
chown wifi wifi /data/misc/wifi/wpa_supplicant.conf
## wpa_supplicant socket (unix socket mode)
mkdir /data/system/wpa_supplicant 0777 wifi wifi
chmod 0777 /data/system/wpa_supplicant
chown wifi wifi /data/system/wpa_supplicant
chown wifi wifi /data/system
chown wifi wifi /data
## wpa_supplicant socket (unix socket mode--another goup version)
----when it failed ,I try this one ,still failed
# mkdir /data/system/wpa_supplicant 0777 system system
# chmod 0777 /data/system/wpa_supplicant
# chown system system /data/system/wpa_supplicant
# chown system system /data/system
# chown system system /data
5.init.rc
service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -ieth1 -
c /system/etc/wifi/wpa_supplicant.conf
group system wifi inet
disabled
oneshot
service dhcpcd /system/bin/dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -d
eth1
group system dhcp wifi
disabled
oneshot
/system/etc/dhcpcd/dhcpcd.conf
interface eth1
option subnet_mask, routers, domain_name_servers
6.
modified wifi.c to loader my libertas.ko and libertas_sdio.ko
and add the bellow in init.rc
setprop wifi.interface "eth1"
setprop wlan.driver.status "ok"
setprop wlan.interface "eth1"
but the erro is the same
E/WifiHW ( 708):Unable to open connection to supplicant on "/data/
system/wpa_supplicant/eth1": No such file or directory
I add some log in external/wpa_supplicant/wpa_ctrl.c
and found that the error is generated in wpa_ctrl.c by the following
line:
connect(ctrl->s, (struct sockaddr *) &ctrl->dest,sizeof(ctrl->dest))
< 0)
here are the logs
I/PackageManager( 708): Features: android.hardware.wifi
android.hardware.location.network android.hardware.bluetooth
android.hardware.location android.hardware.location.gps
android.hardware.touchscreen android.hardware.sensor.accelerometer
android.hardware.sensor.compass
V/ConnectivityService( 708): Starting Wifi Service.
I/WifiService( 708): WifiService starting up with Wi-Fi enabled
W/WifiQiu ( 708): Weber@ctrl is NULL after connect(...)for
CTRL_IFACE_UNIX-ifNdef ANDROID!
E/WifiHW ( 708): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/eth1": No such file or directory
D/wpa_supplicant( 773): Initializing interface 'eth1' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 773): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 773): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 773): ctrl_interface='DIR=/data/system/
wpa_supplicant GROUP=wifi'
D/wpa_supplicant( 773): update_config=1
D/wpa_supplicant( 773): ap_scan=1
D/wpa_supplicant( 773): Initializing interface (2) 'eth1'
D/wpa_supplicant( 773): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 773): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 773): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 773): EAP: EAP entering state DISABLED
D/wpa_supplicant( 773): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 773): EAPOL: External notification - portValid=0
D/wpa_supplicant( 773): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 773): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 773): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 773): Own MAC address: 00:1a:6b:a2:38:65
D/wpa_supplicant( 773): wpa_driver_wext_set_wpa
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 773): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 773): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 773): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 773): Using existing control interface directory.
D/wpa_supplicant( 773): ctrl_interface_group=1010 (from group name
'wifi')
D/wpa_supplicant( 773): Added interface eth1
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1043
([UP][RUNNING])
D/wpa_supplicant( 773): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 773): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 773): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 773): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 773): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 773): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 773): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 773): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 773): Scan results: 0
I/wpa_supplicant( 773): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 773): No suitable AP found.
D/wpa_supplicant( 773): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 773): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 773): Scan requested (ret=0) - scan timeout 5
seconds
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 773): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 773): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 773): Scan results: 0
I/wpa_supplicant( 773): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 773): No suitable AP found.
D/wpa_supplicant( 773): Setting scan request: 5 sec 0 usec
D/WifiService( 708): ACTION_BATTERY_CHANGED pluggedType: 1
D/wpa_supplicant( 773): No enabled networks - do not scan
D/wpa_supplicant( 773): State: SCANNING -> INACTIVE
I/wpa_supplicant( 773): CTRL-EVENT-STATE-CHANGE id=-1 state=1
D/WifiService( 708): ACTION_SCREEN_ON
V/WifiStateTracker( 708): Supplicant died unexpectedly
D/wpa_supplicant( 773): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 773): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
I/wpa_supplicant( 773): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 773): CTRL-EVENT-TERMINATING - signal 0 received
D/wpa_supplicant( 773): Removing interface eth1
D/wpa_supplicant( 773): State: INACTIVE -> DISCONNECTED
I/wpa_supplicant( 773): CTRL-EVENT-STATE-CHANGE id=-1 state=0
D/wpa_supplicant( 773): wpa_driver_wext_set_operstate: operstate 0->0
(DORMANT)
D/wpa_supplicant( 773): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 773): No keys have been configured - skip key
clearing
D/wpa_supplicant( 773): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 773): EAPOL: External notification - portValid=0
D/wpa_supplicant( 773): wpa_driver_wext_set_wpa
D/wpa_supplicant( 773): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 773): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 773): No keys have been configured - skip key
clearing
D/wpa_supplicant( 773): CTRL_IFACE wait for attached monitors to
receive messages
D/wpa_supplicant( 773): Cancelling scan request
D/wpa_supplicant( 773): Cancelling authentication timeout
D/wpa_supplicant( 773): WEXT: Operstate: linkmode=0, operstate=6
Then ,I try the private socket
first ,I remove the /data/system/wpa_supplicant as you said in the
groups
then:
3.
ctrl_interface=eth1
update_config=1
ap_scan=1
4.
init.rc
comment these:
## wpa_supplicant socket (unix socket mode)
# mkdir /data/system/wpa_supplicant 0777 wifi wifi
# chmod 0777 /data/system/wpa_supplicant
# chown wifi wifi /data/system/wpa_supplicant
# chown wifi wifi /data/system
# chown wifi wifi /data
5.
service wpa_supplicant /system/bin/wpa_supplicant -dd -Dwext -ieth1 -
c /system/etc/wifi/wpa_supplicant.conf
socket wpa_eth1 dgram 777 wifi wifi
group system wifi inet
disabled
oneshot
the others are the same as the uinx socket.
but it still can not connnect.
the logs :
I/PackageManager( 708): Features: android.hardware.wifi
android.hardware.location.network android.hardware.bluetooth
android.hardware.location android.hardware.location.gps
android.hardware.touchscreen android.hardware.sensor.accelerometer
android.hardware.sensor.compass
V/ConnectivityService( 708): Starting Wifi Service.
I/WifiService( 708): WifiService starting up with Wi-Fi enabled
D/wpa_supplicant( 774): Initializing interface 'eth1' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 774): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 774): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 774): ctrl_interface='eth1'
D/wpa_supplicant( 774): update_config=1
D/wpa_supplicant( 774): ap_scan=1
D/wpa_supplicant( 774): Initializing interface (2) 'eth1'
D/wpa_supplicant( 774): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 774): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 774): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 774): EAP: EAP entering state DISABLED
D/wpa_supplicant( 774): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 774): EAPOL: External notification - portValid=0
D/wpa_supplicant( 774): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 774): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 774): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 774): Own MAC address: 00:1a:6b:a2:38:65
D/wpa_supplicant( 774): wpa_driver_wext_set_wpa
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 774): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 774): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 774): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 774): Added interface eth1
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1043
([UP][RUNNING])
D/wpa_supplicant( 774): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 774): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 774): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 774): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 774): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 774): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 774): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 774): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 774): Scan results: 0
I/wpa_supplicant( 774): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 774): No suitable AP found.
D/wpa_supplicant( 774): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 774): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 774): Scan requested (ret=0) - scan timeout 5
seconds
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 774): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 774): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 774): Scan results: 0
I/wpa_supplicant( 774): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 774): No suitable AP found.
D/wpa_supplicant( 774): Setting scan request: 5 sec 0 usec
D/WifiService( 708): ACTION_BATTERY_CHANGED pluggedType: 1
D/wpa_supplicant( 774): No enabled networks - do not scan
D/wpa_supplicant( 774): State: SCANNING -> INACTIVE
I/wpa_supplicant( 774): CTRL-EVENT-STATE-CHANGE id=-1 state=1
D/WifiService( 708): ACTION_SCREEN_ON
V/WifiStateTracker( 708): Supplicant died unexpectedly
D/wpa_supplicant( 774): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 774): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
I/wpa_supplicant( 774): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 774): CTRL-EVENT-TERMINATING - signal 0 received
D/wpa_supplicant( 774): Removing interface eth1
D/wpa_supplicant( 774): State: INACTIVE -> DISCONNECTED
I/wpa_supplicant( 774): CTRL-EVENT-STATE-CHANGE id=-1 state=0
D/wpa_supplicant( 774): wpa_driver_wext_set_operstate: operstate 0->0
(DORMANT)
D/wpa_supplicant( 774): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 774): No keys have been configured - skip key
clearing
D/wpa_supplicant( 774): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 774): EAPOL: External notification - portValid=0
D/wpa_supplicant( 774): wpa_driver_wext_set_wpa
D/wpa_supplicant( 774): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 774): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 774): No keys have been configured - skip key
clearing
D/wpa_supplicant( 774): CTRL_IFACE wait for attached monitors to
receive messages
D/wpa_supplicant( 774): Cancelling scan request
D/wpa_supplicant( 774): Cancelling authentication timeout
D/wpa_supplicant( 774): WEXT: Operstate: linkmode=0, operstate=6
W/WifiHW ( 708): Weber@wifi driver unloaded!
D/SettingsWifiEnabler( 812): Received wifi state changed from
Disabling to Disabled
I/ActivityManager( 708): Starting activity: Intent
{ act=android.intent.action.MAIN
cmp=com.android.settings/.wifi.WifiSettings }
D/SettingsWifiEnabler( 812): Received wifi state changed from
Disabling to Disabled
I/ActivityManager( 708): Displayed activity
com.android.settings/.wifi.WifiSettings: 705 ms (total 705 ms)
D/WifiService( 708): ACTION_BATTERY_CHANGED pluggedType: 1
D/SettingsWifiEnabler( 812): Received wifi state changed from
Disabled to Enabling
D/wpa_supplicant( 1132): Initializing interface 'eth1' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 1132): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 1132): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 1132): ctrl_interface='eth1'
D/wpa_supplicant( 1132): update_config=1
D/wpa_supplicant( 1132): ap_scan=1
D/wpa_supplicant( 1132): Initializing interface (2) 'eth1'
D/wpa_supplicant( 1132): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 1132): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 1132): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 1132): EAP: EAP entering state DISABLED
D/wpa_supplicant( 1132): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 1132): EAPOL: External notification - portValid=0
D/wpa_supplicant( 1132): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 1132): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 1132): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 1132): Own MAC address: 00:1a:6b:a2:38:65
D/wpa_supplicant( 1132): wpa_driver_wext_set_wpa
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 1132): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 1132): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 1132): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 1132): Added interface eth1
D/wpa_supplicant( 1132): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 1132): RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1'
added
D/wpa_supplicant( 1132): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 1132): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 1132): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 1132): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 1132): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1132): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 1132): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 1132): Scan results: 0
I/wpa_supplicant( 1132): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 1132): No suitable AP found.
D/wpa_supplicant( 1132): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 1132): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1132): Scan requested (ret=0) - scan timeout 5
seconds
D/wpa_supplicant( 1132): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 1132): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 1132): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 1132): Scan results: 0
I/wpa_supplicant( 1132): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 1132): No suitable AP found.
D/wpa_supplicant( 1132): Setting scan request: 5 sec 0 usec
D/wpa_supplicant( 1132): No enabled networks - do not scan
D/wpa_supplicant( 1132): State: SCANNING -> INACTIVE
I/wpa_supplicant( 1132): CTRL-EVENT-STATE-CHANGE id=-1 state=1
D/SettingsWifiEnabler( 812): Received wifi state changed from
Enabling to Enabled
E/SettingsWifiLayer( 812): Unable to scan for networks
E/SettingsWifiLayer( 812): Unable to scan for networks
E/SettingsWifiLayer( 812): Unable to scan for networks
V/WifiStateTracker( 708): Supplicant died unexpectedly
E/SettingsWifiLayer( 812): Unable to scan for networks
I really don't know what to do?,hope you can help me.Thank you !
--Weber
> >> The differences is that driver_wext.c expects thewifikernel driver
> >> to implement the SIOCSIWPRIV ioctl and respond toandroidcommands
> >> like RSSI, MACADDR etc, while driver_awext.c replies toandroid
> >> commands by using standard wireless extensions ioctls and works for
> >> mostwifidrivers.
> >> Basically driver_awext.c is a wrapper for driver_wext.c and only
> >> reimplements function wpa_driver_priv_driver_cmd().
>
> >> Direct link to the patch:
>
> >>
http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-d...
>
> > I have done somenthing different using your code. Instead of creating a new
> > file just emulate the call in wext part
>
> >
http://gitorious.org/flow-g1-5/platform_external_wpa_supplicant/commi...