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$pr...@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

On May 16, 6:32 pm, DJ_Steve <steve103...@gmail.com> wrote:
> wpa supplicant works fine if i launch it in a adb shell session and i
> can then connect via wpa_cli and execute commands, just seems the
> android ui isnt doing the same and it does throw errors related to
> wpa_supplicant but i cant see why it does
>
> On May 16, 6:29 pm, Ashwin Bihari <abih...@gmail.com> wrote:
>
>
>
> > You've gone through the Wifi setup steps and created the necessary
> > sockets for wpa_supplicant to operate and all that?
>
> > Regards
> > -- Ashwin
>
> > On Sun, May 16, 2010 at 12:04 PM, DJ_Steve <steve103...@gmail.com> wrote:
> > > hello, its me again, ok im getting annoyed with a seemingly pointless
> > > problem im having,
> > > im trying to get ehe driver for the wl1251 wifi in my n900 working -
> > > the module loads, calibration load etc but android wifi subsystem will
> > > not scan for networks (keeps saying unable to scan) yet i can use
> > > wpa_cli myself via adb to scan and retrieve the list of networks quite
> > > hapily.
>
> > > any ideas appreciated and i can post logcat output etc if needed
>
> > > --
> > > unsubscribe: android-porting+unsubscr...@googlegroups.com
> > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: android-porting+unsubscr...@googlegroups.com
> > website:http://groups.google.com/group/android-porting
>
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website:http://groups.google.com/group/android-porting

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to