[android-porting] Wifi Issues WL1251

125 views
Skip to first unread message

DJ_Steve

unread,
May 16, 2010, 12:04:57 PM5/16/10
to android-porting
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-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

Ashwin Bihari

unread,
May 16, 2010, 1:29:47 PM5/16/10
to android-porting
You've gone through the Wifi setup steps and created the necessary
sockets for wpa_supplicant to operate and all that?

Regards
-- Ashwin

DJ_Steve

unread,
May 16, 2010, 1:32:07 PM5/16/10
to android-porting
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
>

DJ_Steve

unread,
May 17, 2010, 4:07:01 AM5/17/10
to android-porting
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

DJ_Steve

unread,
May 17, 2010, 4:08:57 AM5/17/10
to android-porting
also 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$Proxy@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
Reply all
Reply to author
Forward
0 new messages