Wifi Issues WL1251

by DJ_Steve » Mon, 17 May 2010 00:05:09 GMT


Sponsored Links
 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

-- 



Wifi Issues WL1251

by Ashwin Bihari » Mon, 17 May 2010 01:30:01 GMT


 You've gone through the Wifi setup steps and created the necessary
sockets for wpa_supplicant to operate and all that?

Regards
-- Ashwin






-- 


Sponsored Links


Wifi Issues WL1251

by DJ_Steve » Mon, 17 May 2010 01:32:19 GMT


 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





-- 



Wifi Issues WL1251

by DJ_Steve » Mon, 17 May 2010 16:07:14 GMT


 k 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
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

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:2



Wifi Issues WL1251

by DJ_Steve » Mon, 17 May 2010 16:09:10 GMT


 lso this tends to be logcat output on a second attempt at powering up
wifi :


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
E/SettingsWifiLayer( 455): Unable to scan for networks
I/NotificationService( 145): enqueueToast pkg=com.android.settings
callback=android.app.itransientnotification$stub$pr...@43e31a48
duration=1
D/SettingsWifiEnabler( 455): Received wifi state changed from
Enabling to Enabled
I/wpa_supplicant( 486): CTRL-EVENT-STATE-CHANGE id=-1 state=2
I/wpa_supplicant( 486): CTRL-EVENT-SCAN-RESULTS Ready
I/wpa_supplicant( 486): CTRL-EVENT-SCAN-RESULTS Ready
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
V/WifiStateTracker( 145): Connection to supplicant established,
state=SCANNING
D/NetworkStateTracker( 145): setDetailed state, old =DISCONNECTED and
new state=SCANNING
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
I/wpa_supplicant( 486): CTRL-EVENT-DRIVER-STATE HANGED
V/WifiMonitor( 145): Event [CTRL-EVENT-DRIVER-STATE HANGED]
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
E/wpa_supplicant( 486): wpa_driver_priv_driver_cmd failed
I/wpa_supplicant( 486): CTRL-EVENT-DRIVER-STATE HANGED
V/WifiMonitor( 145): Event [CTRL-EVENT-DRIVER-STATE HANGED]
D/ConnectivityService( 145): Dropping ConnectivityChange for WIFI:
DISCONNECTED/SCANNING
E/WifiStateTracker( 145): Wifi Driver reports HUNG - reloading.
I/wpa_supplicant( 486): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 486): CTRL-EVENT-TERMINATING - signal 0 received
I/wpa_supplicant( 486): CTRL-EVENT-STATE-CHANGE id=-1 state=0
V/WifiMonitor( 145): Event [CTRL-EVENT-TERMINATING - signal 15
received]
E/WifiStateTracker( 145): Wifi Driver reports HUNG - reloading.
V/WifiStateTracker( 145): Connection to supplicant lost
D/NetworkStateTracker( 145): setDetailed state, old =SCANNING and new
state=DISCONNECTED
D/ConnectivityService( 145): Dropping ConnectivityChange for WIFI:
DISCONNECTED/DISCONNECTED
D/SettingsWifiEnabler( 455): Received wifi state changed from Enabled
to Disabling
D/SettingsWifiEnabler( 455): Received wifi state changed from
Disabling to Disabled
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
D/SettingsWifiEnabler( 455): Received wifi state changed from Enabled
to Disabling
D/dalvikvm( 455): GREF has increased to 201



On May 17, 9:07am, DJ_Steve <steve103...@gmail.com> wrote:

--



Other Threads

1. Standalone java code is not working in the same way from android.



The problem is this:



Looking at the Eclair version of SAXParserFactory:

 
http://android.git.kernel.org/?p=platform/dalvik.git;a=blob;f=libcore/xml/src/main/java/javax/xml/parsers/SAXParserFactory.java;h=ebf053198e0babc6a668c6cb8dca561d2dd8a789;hb=eclair#l99

the definition of getSchema() is commented out, with the remark "TODO
No XSchema support in Android 1.0. Maybe later."

So this won't work yet.

-- 

2. Implementing Filterable Cursor Adapter: How to I invoke/refresh filter?

Solved: I exposed the adapter filter such that I could call
getFilter().filter( constraint ) explicitly ...also had a case
mismatch in my query.





-- 

3. Find the Device Details using an API

4. Pinging Through a Wireless Router on Motorola Droid

5. how to use adb tool on SAMSUNG GALAXY?

6. How to grab alert dialog from App under test using robotium/solo?

7. Using SWIG with Android NDK - Weak Global References