ok i thought i'd post up some debug info of errors see if anyone else
can work this out.
logcat of attempting to power up wifi through android gui
D/SettingsWifiEnabler( 455): Received wifi state changed from
Disabled to Enabling
D/WifiService( 145): ACTION_BATTERY_CHANGED pluggedType: 0
E/WifiHW ( 145): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
D/SettingsWifiEnabler( 455): Received wifi state changed from
Enabling to Enabled
I/wpa_supplicant( 463): CTRL-EVENT-STATE-CHANGE id=-1 state=2
I/wpa_supplicant( 463): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 463): CTRL-EVENT-SCAN-RESULTS Ready
E/SettingsWifiLayer( 455): Unable to scan for networks
I/NotificationService( 145): enqueueToast pkg=com.android.settings
callback=android.app.ITransientNotification$Stub$Proxy@43df0c40
duration=1
I/ARMAssembler( 145): generated
scanline__00000177:03515104_00001A01_00000000 [ 73 ipp] (98 ins) at
[0x4136a0:0x413828] in 213623 ns
E/WifiHW ( 145): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
I/wpa_supplicant( 463): CTRL-EVENT-STATE-CHANGE id=-1 state=1
I/wpa_supplicant( 463): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 463): CTRL-EVENT-TERMINATING - signal 0 received
I/wpa_supplicant( 463): CTRL-EVENT-STATE-CHANGE id=-1 state=0
D/SettingsWifiEnabler( 455): Received wifi state changed from Enabled
to Disabling
E/WifiHW ( 145): Supplicant not running, cannot connect
D/SettingsWifiEnabler( 455): Received wifi state changed from
Disabling to Disabled
E/WifiHW ( 145): Supplicant not running, cannot connect
V/WifiStateTracker( 145): Connection to supplicant lost
D/NetworkStateTracker( 145): setDetailed state, old =IDLE and new
state=DISCONNECTED
D/ConnectivityService( 145): ConnectivityChange for WIFI:
DISCONNECTED/DISCONNECTED
but if i do the following from 2 adb sessions :
1st session:
# wpa_supplicant -iwlan0 -c/system/etc/wifi/wpa_supplicant.conf -dd -w
ioctl[SIOCGIFFLAGS]: No such device
Could not set interface 'wlan0' UP
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCGIFINDEX]: No such device
ioctl[SIOCGIFINDEX]: No such device
l2_packet_receive - recvfrom: Network is down
ioctl[SIOCSIWSCAN]: Network is down
2nd session:
insmod /system/lib/modules/wl12xx.ko
wpa_cli -p /data/system/wpa_supplicant
wpa_cli v0.5.11
Copyright (c) 2004-2008, Jouni Malinen <
j...@w1.fi> and contributors
This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.
Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.
Selected interface 'wlan0'
Interactive mode
> scan
OK
<2>CTRL-EVENT-STATE-CHANGE id=-1 state=2
>
<2>CTRL-EVENT-SCAN-RESULTS Ready
<2>CTRL-EVENT-STATE-CHANGE id=-1 state=1
> scan_results
bssid / frequency / signal level / flags / ssid
00:01:e3:e9:06:d0 2462 169 [WPA-PSK-TKIP+CCMP][WPA2-PSK-
TKIP+CCMP-preauth] OrangeE906CE
00:23:48:63:3a:27 2462 169 [WPA-PSK-TKIP] SKY14886
00:14:6c:f0:35:02 2462 168 [WPA-PSK-TKIP]
00:18:4d:60:dd:46 2437 203 [WEP] SKY37397
same route that android seems to use but wpa_cli works ?
will check all permissions again now