FYI: Wifi patches for Android

99 views
Skip to first unread message

Jim Huang

unread,
Oct 10, 2010, 10:15:10 AM10/10/10
to 0xlab-devel
FYI.

---------- Forwarded message ----------
From: hedwin <hedwin...@gmail.com>
Date: 2010/10/10
Subject: [rowboat] IGEPv2 patches for Wifi support
To: row...@googlegroups.com


Hi,

Attached the updates for getting Wifi running on a IGEPv2 board.
Also attached the firmware I used. Firmware version is 9.70.7p0
The firmware files need to stored in a firmware directory in vendor/ti/igepv2
The libertas kernel modules need to be copied to vendor/ti/igepv2/libertas

There are 2 workarounds. In kernel file omap_hsmm.c the clk_disable is
commented to make sure
that the mmc is not disabled will wifi is still operational. Need to
check what triggers the clk_disable.
Other workaround is in wifi.c in hardware/libhardware_legacy/wifi.
Continue operation even if changing
ownership of the copied wpa_suppliant.conf fails. Still get "permission denied".

Regarding the attached patch files:

* kernel - 0001-Update-for-IGEPv2-Wifi-support.patch

- igep0020_android_defconfig
 Enable libertas wifi driver
 Add
- board_igep0020.c
 Added mmc2 setup
 Added wifi/bt, backport gpio assignment based on board.
- omap_hsmm.c
 Temp workaround: commented clk_disable for fclk
- libertas/wext.c
 Added SIOCSIWPRIV, needs further improvements.


* external/wpa_supplicant - 0001-Changed-group-id-from-wifi-to-system.patch

- os_unix.c
 Change group id from wifi to system. Reason for doing this is that
the wifi part is called with both uid/gid as system


* hardware/libhardware_legacy - 0001-Ignore-wpa_supplicant.conf-copy.patch

- wifi.c
 Ignore copying wpa_supplicant.conf for now. For some reason cannot
get this file copied without a "permission denied" error


* system/core - 0001-Ignore-none-SD-card-devices-connected-to-mmc.patch

- mmc.c
 Updated to ignore devices connected to an mmc inferface that are not
SD-card related.


* vendor/ti/igepv2 - 0001-IGEPv2-Wifi-updates.patch

- added wpa_supplicant.conf
- added dhcpcd.conf
- added insmoding libertas kernel drivers.
- added include WEXT build

Ok that's it. Hope I didn't forget a file.

Hedwin

PS: Next time will try to use gitorius

--
You received this message because you are subscribed to the Google
Groups "rowboat" group.
To post to this group, send email to row...@googlegroups.com.
To unsubscribe from this group, send email to
rowboat+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rowboat?hl=en.

0001-Update-for-IGEPv2-Wifi-support.patch
0001-Changed-group-id-from-wifi-to-system.patch
0001-Ignore-wpa_supplicant.conf-copy.patch
0001-Ignore-none-SD-card-devices-connected-to-mmc.patch
0001-IGEPv2-Wifi-updates.patch
sd8686.bin
sd8686_helper.bin

axel

unread,
Oct 19, 2010, 3:19:01 AM10/19/10
to 0xlab-devel
hi,
I am running Froyo on a PXA platfrom.
I takes the SIOCSIWPRIV implementation from 0001-Update-for-IGEPv2-
Wifi-support.patch for my libertas driver.
The wifi still doesn't work. Anything I missed to make the wifi work?

Below is my log:
It seems the system is able to scan AP and I even have "State:
ASSOCIATED -> COMPLETED" in the log.
But in the end it shows "Reset connections and stopping DHCP" and
"Disabling interface".
Any idea?

Regards,
Axel

logcat -d
--------- beginning of /dev/log/main
D/Tethering( 74): wlan0 is not a tetherable iface, ignoring
--------- beginning of /dev/log/system
D/WifiService( 74): ACTION_BATTERY_CHANGED pluggedType: 0
E/WifiHW ( 74): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
D/wpa_supplicant( 359): Initializing interface 'wlan0' conf '/data/
misc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 359): Configuration file '/data/misc/wifi/
wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 359): Reading configuration file '/data/misc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 359): update_config=1
D/wpa_supplicant( 359): ctrl_interface='DIR=/data/system/
wpa_supplicant GROUP=wifi'
D/wpa_supplicant( 359): eapol_version=1
D/wpa_supplicant( 359): ap_scan=1
D/wpa_supplicant( 359): fast_reauth=1
D/wpa_supplicant( 359): Priority group 0
D/wpa_supplicant( 359): id=0 ssid=''
D/wpa_supplicant( 359): Initializing interface (2) 'wlan0'
D/wpa_supplicant( 359): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 359): EAPOL: KEY_RX entering state NO_KEY_RECEIVE
D/wpa_supplicant( 359): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 359): EAP: EAP entering state DISABLED
D/wpa_supplicant( 359): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 359): EAPOL: External notification - portValid=0
D/WifiStateTracker( 74): Reset connections and stopping DHCP
D/wpa_supplicant( 359): SIOCGIWRANGE: WE(compiled)=22 WE(source)=15
enc_capa=0xf
D/wpa_supplicant( 359): capabilities: key_mgmt 0xf enc 0xf
D/wpa_supplicant( 359): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 359): Own MAC address: 00:24:7e:66:6b:4e
D/wpa_supplicant( 359): wpa_driver_wext_set_wpa
D/wpa_supplicant( 359): wpa_driver_wext_set_key: alg=0 key_idx=0
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 359): wpa_driver_wext_set_key: alg=0 key_idx=1
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 359): wpa_driver_wext_set_key: alg=0 key_idx=2
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 359): wpa_driver_wext_set_key: alg=0 key_idx=3
set_tx=0 seq_len=0 key_len=0
D/wpa_supplicant( 359): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 359): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 359): Setting scan request: 0 sec 100000 usec
D/wpa_supplicant( 359): Using existing control interface directory.
D/wpa_supplicant( 359): ctrl_interface_group=1010 (from group name
'wifi')
D/wpa_supplicant( 359): Added interface wlan0
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1043
([UP][RUNNING])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 359): State: DISCONNECTED -> SCANNING
I/wpa_supplicant( 359): CTRL-EVENT-STATE-CHANGE id=-1 state=2
D/wpa_supplicant( 359): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 359): Trying to get current scan results first
without requesting a new scan to speed up initial association
D/wpa_supplicant( 359): Received 0 bytes of scan results (0 BSSes)
D/wpa_supplicant( 359): Scan results: 0
I/wpa_supplicant( 359): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 359): Selecting BSS from priority group 0
D/wpa_supplicant( 359): Try to find WPA-enabled AP
D/wpa_supplicant( 359): Try to find non-WPA AP
D/wpa_supplicant( 359): No suitable AP found.
D/wpa_supplicant( 359): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 359): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 359): Scan requested (ret=0) - scan timeout 5
seconds
D/WifiStateTracker( 74): Disabling interface
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
I//system/bin/wpa_supplicant( 358): l2_packet_receive - recvfrom:
Network is down
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 359): Received 4253 bytes of scan results (24
BSSes)
D/wpa_supplicant( 359): Scan results: 24
I/wpa_supplicant( 359): CTRL-EVENT-SCAN-RESULTS Ready
D/wpa_supplicant( 359): Selecting BSS from priority group 0
D/wpa_supplicant( 359): Try to find WPA-enabled AP
D/wpa_supplicant( 359): 0: 00:22:90:5d:84:a6 ssid='XXXXX-YYYYY_XXX'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 1: 00:22:90:5d:84:a2 ssid='XXXXX-YYYYY_LHIC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 2: 00:20:a6:54:02:41 ssid='XXX_SWRDC_LAB2'
wpa_ie_len=24 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 3: 00:22:90:5d:8b:66 ssid='XXXXX-YYYYY_XXX'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 4: 00:22:90:5d:8b:62 ssid='XXXXX-YYYYY_LHIC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 5: 00:11:2f:32:06:b5 ssid='XXX_DQA'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 6: 00:22:90:5d:81:66 ssid='XXXXX-YYYYY_XXX'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 7: 00:22:90:5d:81:62 ssid='XXXXX-YYYYY_LHIC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 8: 00:22:90:5d:81:61 ssid='XXXXX-YYYYY_UPC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - SSID mismatch
D/wpa_supplicant( 359): 9: 00:22:90:5d:84:a0 ssid='XXXXX-YYYYY'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 10: 00:22:90:5d:84:a4 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 11: 00:22:90:5d:84:a8 ssid='ZZZZZ_WLAN'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 12: 00:22:90:5d:8b:60 ssid='XXXXX-YYYYY'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 13: 00:22:90:5d:8b:64 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 14: 00:22:90:5d:8b:68 ssid='ZZZZZ_WLAN'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 15: 00:22:90:39:28:b4 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 16: 00:22:90:39:28:b5 ssid='XXX_Wireless_AP'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 17: 00:22:90:5d:81:64 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 18: 00:22:90:5d:81:60 ssid='XXXXX-YYYYY'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 19: 00:22:90:5d:81:68 ssid='ZZZZZ_WLAN'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 20: 00:22:90:5d:81:65 ssid='XXX_Wireless_AP'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 21: 00:1c:f0:f2:b6:b4 ssid='XXX_SW_TEST'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 22: 00:00:00:00:00:00 ssid='' wpa_ie_len=0
rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): 23: 00:11:2f:de:36:a9 ssid='XXX_SWRDC_LAB1'
wpa_ie_len=0 rsn_ie_len=0 caps=0x1
D/wpa_supplicant( 359): skip - no WPA/RSN IE
D/wpa_supplicant( 359): Try to find non-WPA AP
D/wpa_supplicant( 359): 0: 00:22:90:5d:84:a6 ssid='XXXXX-YYYYY_XXX'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 1: 00:22:90:5d:84:a2 ssid='XXXXX-YYYYY_LHIC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 2: 00:20:a6:54:02:41 ssid='XXX_SWRDC_LAB2'
wpa_ie_len=24 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 3: 00:22:90:5d:8b:66 ssid='XXXXX-YYYYY_XXX'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 4: 00:22:90:5d:8b:62 ssid='XXXXX-YYYYY_LHIC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 5: 00:11:2f:32:06:b5 ssid='XXX_DQA'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 6: 00:22:90:5d:81:66 ssid='XXXXX-YYYYY_XXX'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 7: 00:22:90:5d:81:62 ssid='XXXXX-YYYYY_LHIC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 8: 00:22:90:5d:81:61 ssid='XXXXX-YYYYY_UPC'
wpa_ie_len=26 rsn_ie_len=22 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 9: 00:22:90:5d:84:a0 ssid='XXXXX-YYYYY'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 10: 00:22:90:5d:84:a4 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 11: 00:22:90:5d:84:a8 ssid='ZZZZZ_WLAN'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 12: 00:22:90:5d:8b:60 ssid='XXXXX-YYYYY'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 13: 00:22:90:5d:8b:64 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 14: 00:22:90:5d:8b:68 ssid='ZZZZZ_WLAN'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 15: 00:22:90:39:28:b4 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 16: 00:22:90:39:28:b5 ssid='XXX_Wireless_AP'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 17: 00:22:90:5d:81:64 ssid='xxxxxwlan'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 18: 00:22:90:5d:81:60 ssid='XXXXX-YYYYY'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 19: 00:22:90:5d:81:68 ssid='ZZZZZ_WLAN'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 20: 00:22:90:5d:81:65 ssid='XXX_Wireless_AP'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 21: 00:1c:f0:f2:b6:b4 ssid='XXX_SW_TEST'
wpa_ie_len=0 rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 22: 00:00:00:00:00:00 ssid='' wpa_ie_len=0
rsn_ie_len=0 caps=0x11
D/wpa_supplicant( 359): skip - privacy mismatch
D/wpa_supplicant( 359): 23: 00:11:2f:de:36:a9 ssid='XXX_SWRDC_LAB1'
wpa_ie_len=0 rsn_ie_len=0 caps=0x1
D/wpa_supplicant( 359): selected non-WPA AP 00:11:2f:de:36:a9
ssid='XXX_SWRDC_LAB1'
I/wpa_supplicant( 359): Trying to associate with 00:11:2f:de:36:a9
(SSID='XXX_SWRDC_LAB1' freq=2447 MHz)
D/wpa_supplicant( 359): Cancelling scan request
D/wpa_supplicant( 359): WPA: clearing own WPA/RSN IE
D/wpa_supplicant( 359): Automatic auth_alg selection: 0x1
D/wpa_supplicant( 359): WPA: clearing AP WPA IE
D/wpa_supplicant( 359): WPA: clearing AP RSN IE
D/wpa_supplicant( 359): WPA: clearing own WPA/RSN IE
D/wpa_supplicant( 359): No keys have been configured - skip key
clearing
D/wpa_supplicant( 359): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 359): State: SCANNING -> ASSOCIATING
I/wpa_supplicant( 359): CTRL-EVENT-STATE-CHANGE id=-1 state=3
D/wpa_supplicant( 359): wpa_driver_wext_set_operstate: operstate 0->0
(DORMANT)
D/wpa_supplicant( 359): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 359): wpa_driver_wext_associate
D/wpa_supplicant( 359): Setting authentication timeout: 10 sec 0 usec
D/wpa_supplicant( 359): EAPOL: External notification -
portControl=ForceAuthorized
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): Wireless event: cmd=0x8b06 len=8
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x1003
([UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): Wireless event: cmd=0x8b04 len=12
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x11003
([UP][LOWER_UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=0 ifi_flags=0x11003
([UP][LOWER_UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 359): Wireless event: cmd=0x8b15 len=20
D/wpa_supplicant( 359): Wireless event: new AP: 00:11:2f:de:36:a9
D/wpa_supplicant( 359): State: ASSOCIATING -> ASSOCIATED
I/wpa_supplicant( 359): CTRL-EVENT-STATE-CHANGE id=0 state=4
D/wpa_supplicant( 359): wpa_driver_wext_set_operstate: operstate 0->0
(DORMANT)
D/wpa_supplicant( 359): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 359): Associated to a new BSS: BSSID=00:11:2f:de:
36:a9
I/wpa_supplicant( 359): Associated with 00:11:2f:de:36:a9
D/wpa_supplicant( 359): WPA: Association event - clear replay counter
D/wpa_supplicant( 359): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 359): EAPOL: External notification - portValid=0
D/wpa_supplicant( 359): EAPOL: External notification - portEnabled=1
D/wpa_supplicant( 359): EAPOL: SUPP_PAE entering state S_FORCE_AUTH
D/wpa_supplicant( 359): EAPOL: SUPP_BE entering state IDLE
D/wpa_supplicant( 359): Cancelling authentication timeout
D/wpa_supplicant( 359): State: ASSOCIATED -> COMPLETED
I/wpa_supplicant( 359): CTRL-EVENT-STATE-CHANGE id=0 state=7
I/wpa_supplicant( 359): CTRL-EVENT-CONNECTED - Connection to
00:11:2f:de:36:a9 completed (auth) [id=0 id_str=]
D/wpa_supplicant( 359): wpa_driver_wext_set_operstate: operstate 0->1
(UP)
D/wpa_supplicant( 359): WEXT: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 359): Cancelling scan request
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=1 ifi_flags=0x11043
([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
E/WifiHW ( 74): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
D/dalvikvm( 153): GC_FOR_MALLOC freed 10627 objects / 513176 bytes in
82ms
E/WifiHW ( 74): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
E/WifiHW ( 74): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
V/WifiStateTracker( 74): Supplicant died unexpectedly
D/WifiStateTracker( 74): Reset connections and stopping DHCP
D/WifiStateTracker( 74): Disabling interface
D/wpa_supplicant( 359): RTM_NEWLINK: operstate=1 ifi_flags=0x1002 ()
D/wpa_supplicant( 359): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
I//system/bin/wpa_supplicant( 358): l2_packet_receive - recvfrom:
Network is down
D/NetworkStateTracker( 74): setDetailed state, old =DISCONNECTED and
new state=DISCONNECTED
I/wpa_supplicant( 359): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 359): CTRL-EVENT-TERMINATING - signal 0 received
D/wpa_supplicant( 359): Removing interface wlan0
D/wpa_supplicant( 359): State: COMPLETED -> DISCONNECTED
I/wpa_supplicant( 359): CTRL-EVENT-STATE-CHANGE id=0 state=0
D/wpa_supplicant( 359): wpa_driver_wext_set_operstate: operstate 1->0
(DORMANT)
D/wpa_supplicant( 359): WEXT: Operstate: linkmode=-1, operstate=5
D/wpa_supplicant( 359): wpa_driver_wext_deauthenticate
D/wpa_supplicant( 359): No keys have been configured - skip key
clearing
D/wpa_supplicant( 359): EAPOL: External notification - portEnabled=0
D/wpa_supplicant( 359): EAPOL: SUPP_PAE entering state DISCONNECTED
D/wpa_supplicant( 359): EAPOL: SUPP_BE entering state INITIALIZE
D/wpa_supplicant( 359): EAPOL: External notification - portValid=0
D/wpa_supplicant( 359): wpa_driver_wext_set_wpa
D/wpa_supplicant( 359): wpa_driver_wext_set_drop_unencrypted
D/wpa_supplicant( 359): wpa_driver_wext_set_countermeasures
D/wpa_supplicant( 359): No keys have been configured - skip key
clearing
D/wpa_supplicant( 359): Cancelling scan request
D/wpa_supplicant( 359): Cancelling authentication timeout
D/wpa_supplicant( 359): WEXT: Operstate: linkmode=0, operstate=6
D/WifiStateTracker( 74): Reset connections and stopping DHCP
D/WifiStateTracker( 74): Disabling interface
E/WifiHW ( 74): ########## executing wifi_unload_driver()
E/Tethering( 74): attempting to remove unknown iface (wlan0),
ignoring


>
>  0001-Update-for-IGEPv2-Wifi-support.patch
> 26K檢視下載
>
>  0001-Changed-group-id-from-wifi-to-system.patch
> < 1K檢視下載
>
>  0001-Ignore-wpa_supplicant.conf-copy.patch
> 1K檢視下載
>
>  0001-Ignore-none-SD-card-devices-connected-to-mmc.patch
> 1K檢視下載
>
>  0001-IGEPv2-Wifi-updates.patch
> 50K檢視下載
>
>  sd8686.bin
> 163K檢視下載
>
>  sd8686_helper.bin
> 3K檢視下載

Jim Huang

unread,
Oct 19, 2010, 3:32:14 AM10/19/10
to 0xlab...@googlegroups.com
2010/10/19 axel <axel...@gmail.com>:
[...]
> Below is my log:

Please provide the detailed hardware configurations (PXA310 or other
machines + Wireless chipset/model)

> It seems the system is able to scan AP and I even have "State:
> ASSOCIATED -> COMPLETED" in the log.
> But in the end it shows "Reset connections and stopping DHCP" and
> "Disabling interface".

The problem:


E/WifiHW ( 74): Unable to open connection to supplicant on "/data/
system/wpa_supplicant/wlan0": No such file or directory
V/WifiStateTracker( 74): Supplicant died unexpectedly

Please check if wpa_cli works in your environment or not.

Regards,
Jim Huang (jserv)
http://0xlab.org/

axel

unread,
Oct 19, 2010, 3:43:21 AM10/19/10
to 0xlab-devel


On 10月19日, 下午3時32分, Jim Huang <js...@0xlab.org> wrote:
> 2010/10/19 axel <axel....@gmail.com>:
> [...]
>
> > Below is my log:
>
> Please provide the detailed hardware configurations (PXA310 or other
> machines + Wireless chipset/model)

It's a PXA310 with libertas_spi driver

( I have tested the same driver/firmware on OPIE environment, and the
wifi works.
But running Froyo, it does not work. )

>
> > It seems the system is able to scan AP and I even have "State:
> > ASSOCIATED -> COMPLETED" in the log.
> > But in the end it shows "Reset connections and stopping DHCP" and
> > "Disabling interface".
>
> The problem:
> E/WifiHW  (   74): Unable to open connection to supplicant on "/data/
> system/wpa_supplicant/wlan0": No such file or directory
> V/WifiStateTracker(   74): Supplicant died unexpectedly
>
> Please check if wpa_cli works in your environment or not.

# cd /system/lib/modules
# ls
libertas_spi.ko
# insmod libertas_spi.ko
[ 121.853071] libertas_spi: Libertas SPI driver
[ 122.180448] libertas_spi spi1.0: firmware: requesting libertas/
gspi8686_hlp.bin
[ 122.200439] init: untracked pid 302 exited
[ 122.575748] libertas_spi spi1.0: firmware: requesting libertas/
gspi8686.bin
[ 122.631178] init: untracked pid 303 exited
[ 123.291886] libertas: 00:24:7e:66:6b:4e, fw 9.70.10p0, cap
0x00000303
[ 123.309451] libertas: wlan0: Marvell WLAN 802.11 adapter
# lsmod
libertas_spi 9330 0 - Live 0xbf008000
# start wpa_supplicant
# cd /data/system/wpa_supplicant
# ls -l
srwxrwx--- wifi wifi 2010-10-19 07:35 wlan0
# netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
wlan0 UP 0.0.0.0 0.0.0.0 0x00001043
# wpa_cli -p/data/system/wpa_supplicant -iwlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or
directory

Regards,
Axel

>
> Regards,
> Jim Huang (jserv)http://0xlab.org/

Jim Huang

unread,
Oct 19, 2010, 3:52:39 AM10/19/10
to 0xlab...@googlegroups.com
2010/10/19 axel <axel...@gmail.com>:

> It's a PXA310 with libertas_spi driver
>

hi,

I have not touched libertas driver for a long time. Instead, I got
Linux driver from Marvell
directly.

[...]


> [  123.291886] libertas: 00:24:7e:66:6b:4e, fw 9.70.10p0, cap
> 0x00000303
> [  123.309451] libertas: wlan0: Marvell WLAN 802.11 adapter

Ok, it seems that driver already works.

[...]


> # wpa_cli -p/data/system/wpa_supplicant -iwlan0 status
> Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or
> directory
>

So, you have to digg the reason why wpa_cli could not work for you.
In fact, the
Android framework uses libwpa_cli as well.

axel

unread,
Oct 19, 2010, 5:55:59 AM10/19/10
to 0xlab-devel


On 10月19日, 下午3時52分, Jim Huang <js...@0xlab.org> wrote:
> 2010/10/19 axel <axel....@gmail.com>:
>
> > It's a PXA310 with libertas_spi driver
>
> hi,
>
> I have not touched libertas driver for a long time.  Instead, I got
> Linux driver from Marvell
> directly.
>
> [...]
>
> > [  123.291886] libertas: 00:24:7e:66:6b:4e, fw 9.70.10p0, cap
> > 0x00000303
> > [  123.309451] libertas: wlan0: Marvell WLAN 802.11 adapter
>
> Ok, it seems that driver already works.
>
> [...]
>
> > # wpa_cli -p/data/system/wpa_supplicant -iwlan0 status
> > Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or
> > directory
>
> So, you have to digg the reason why wpa_cli could not work for you.
> In fact, the
> Android framework uses libwpa_cli as well.
>
hi Jim,
Thanks for your quick response.

My wifi is working now.
The root cause is:
/data/misc/wifi/sockets does not exist.
so wpa_supplicant failed to create control interface.

I fixed it by adding "mkdir /data/misc/wifi/sockets 0770 wifi wifi" in
init.rc.
Reply all
Reply to author
Forward
0 new messages