paul
unread,May 11, 2009, 9:08:36 AM5/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-porting
Dear all,
I am porting Android to the ARM platform, i am trying to make Wi-
Fi
work, my wifi chip is Marvel 8686, but i get the failure log as
bellow:
"# V/WifiMonitor( 586): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 586): Changing supplicant state: COMPLETED ==>
SCANNING
V/WifiMonitor( 586): Event [Trying to associate with
00:14:78:b0:15:10 (SSID='MXIC' freq=2437 MHz)]
V/WifiMonitor( 586): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=3]
V/WifiMonitor( 586): Event [Association request to the driver failed]
V/WifiStateTracker( 586): Changing supplicant state: SCANNING ==>
ASSOCIATING
================================================================
I/WifiStateTracker( 586): DhcpHandler: DHCP request failed: Timed out
waiting for DHCP to finish
================================================================
V/WifiMonitor( 586): Event [CTRL-EVENT-STATE-CHANGE id=2 state=8]
V/WifiStateTracker( 586): Changing supplicant state: ASSOCIATING ==>
DORMANT
D/WifiStateTracker( 586): Deconfiguring interface and stopping DHCP
V/WifiMonitor( 586): Event [CTRL-EVENT-DISCONNECTED - Disconnect
event - remove keys]
V/WifiMonitor( 586): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8]
V/WifiStateTracker( 586): New network state is DISCONNECTED
V/WifiStateTracker( 586): Changing supplicant state: DORMANT ==>
DORMANT
D/SettingsWifiEnabler( 880): Received network state changed to
NetworkInfo: type: WIFI[], state: DISCONNECTED/FAILED, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: true
D/dalvikvm( 586): GC freed 10540 objects / 431496 bytes in 414ms
D/SettingsWifiEnabler( 880): Received network state changed to
NetworkInfo: type: WIFI[], state: DISCONNECTED/FAILED, reason:
(unspecified), extra: (none), roaming: false, failover: false,
isAvailable: true
V/WifiMonitor( 586): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 586): Changing supplicant state: DORMANT ==>
SCANNING"
My wifi chip has connected the AP , when i enter "iwconfig", it show
as follow :
"
eth1 IEEE 802.11b/g ESSID:"dlink"
Mode:Managed Frequency:2.437 GHz Access Point:
00:24:01:25:18:8A
Bit Rate:1 Mb/s Tx-Power=13 dBm
Retry limit:8 RTS thr=2347 B Fragment thr=2346 B
Encryption key:off
Power Management:off
Link Quality=98/100 Signal level=-30 dBm Noise level=-93
dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:4080
Tx excessive retries:8 Invalid misc:32 Missed beacon:0
"
I has added
"
mkdir /data/misc/dhcp 0770 dhcp dhcp
chown dhcp dhcp /data/misc/dhcp
service dhcpcd /system/bin/dhcpcd -d -f /system/etc/dhcpcd/dhcpcd.conf
-X eth1
disabled
oneshot
"
to my init.rc ,
and the content of dhcpcd.conf is :
"
# dhcpcd configuration for Android Wi-Fi interface
# See dhcpcd.conf(5) for details.
interface eth1
# dhcpcd-run-hooks uses these options.
option subnet_mask, routers, domain_name_servers
"
But my Android can't get the Wi-Fi network configuration from DHCP ,
any idea? thanks !!!
--
Best Regards!
Paul