Hi Irfan,

Thank for your information, I double check the log.

In logcat, I found AP can be located, and ifcfg_ralink service has
been completed State change to COMPLETED
dhcpcd debug message can be found, but last message is
D/dhcpcd  ( 1309): executing `/system/etc/dhcpcd/dhcpcd-run-hooks',
reason PREINIT

Is there any other possible reason?

D/wpa_supplicant( 1294): Initializing interface 'wlan0' conf '/system/
etc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
D/wpa_supplicant( 1294): Configuration file '/system/etc/wifi/
wpa_supplicant.conf' -> '/system/etc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 1294): Reading configuration file '/system/etc/wifi/
wpa_supplicant.conf'
D/wpa_supplicant( 1294): ctrl_interface='DIR=/data/system/
wpa_supplicant GROUP=wifi'
D/wpa_supplicant( 1294): update_config=1
D/wpa_supplicant( 1294): ap_scan=1
D/wpa_supplicant( 1294): Priority group 0
D/wpa_supplicant( 1294):    id=0 ssid=''
D/wpa_supplicant( 1294): Initializing interface (2) 'wlan0'
init: untracked pid 1296 exited
phy0 -> rt2x00lib_request_firmware: Info - Firmware detected -
version: 1.7.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 0 - CWmin: 3,
CWmax: 4, Aifs: 2, TXop: 102.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 1 - CWmin: 4,
CWmax: 5, Aifs: 2, TXop: 188.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 2 - CWmin: 5,
CWmax: 10, Aifs: 3, TXop: 0.
phy0 -> rt2x00mac_conf_tx: Info - Configured TX queue 3 - CWmin: 5,
CWmax: 10, Aifs: 7, TXop: 0.
D/wpa_supplicant( 1294): Interface wlan0 set UP - waiting a second for
the driver to complete initialization
D/wpa_supplicant( 1294): SIOCGIWRANGE: WE(compiled)=22 WE(source)=21
enc_capa=0xf
D/wpa_supplicant( 1294):   capabilities: key_mgmt 0xf enc 0xf flags
0x0
D/wpa_supplicant( 1294): WEXT: Operstate: linkmode=1, operstate=5
D/wpa_supplicant( 1294): Own MAC address: 94:0c:6d:e0:14:dc
...
D/wpa_supplicant( 1294): State: ASSOCIATED -> COMPLETED
I/wpa_supplicant( 1294): CTRL-EVENT-STATE-CHANGE id=0 state=7
BSSID=00:00:00:00:00:00
I/wpa_supplicant( 1294): CTRL-EVENT-CONNECTED - Connection to 00:1f:
33:c7:e4:86 completed (auth) [id=0 id_str=]
D/wpa_supplicant( 1294): wpa_driver_wext_set_operstate: operstate 0->1
(UP)
D/wpa_supplicant( 1294): WEXT: Operstate: linkmode=-1, operstate=6
D/wpa_supplicant( 1294): Cancelling scan request
D/wpa_supplicant( 1294): RTM_NEWLINK: operstate=1 ifi_flags=0x11043
([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 1294): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI-APPROX len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI len = 4, 4
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len = 9,
9
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd MACADDR len = 4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd MACADDR len = 7, 7
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd BTCOEXMODE 1 len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd BTCOEXMODE 1 len =
0, 12
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd POWERMODE 1 len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd POWERMODE 1 len =
0, 11
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-ADD 0 len
= 4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-ADD 0 len
= 0, 14
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-ADD 1 len
= 4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-ADD 1 len
= 0, 14
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-ADD 3 len
= 4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-ADD 3 len
= 0, 14
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-START len
= 4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RXFILTER-START len
= 0, 14
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd BTCOEXSCAN-STOP
len = 4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd BTCOEXSCAN-STOP
len = 0, 15
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI-APPROX len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI len = 4, 4
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len = 9,
9
D/dhcpcd  ( 1309): dhcpcd 4.0.15 starting
D/dhcpcd  ( 1309): hardware address = 94:0c:6d:e0:14:dc
D/dhcpcd  ( 1309): executing `/system/etc/dhcpcd/dhcpcd-run-hooks',
reason PREINIT
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='ssid'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'ssid'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='bssid'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'bssid'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='priority'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='scan_ssid'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='wep_tx_keyidx'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key0'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key0'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key1'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key1'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key2'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key2'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key3'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key3'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='psk'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'psk'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='proto'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='key_mgmt'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='auth_alg'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='pairwise'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='group'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='eap'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'eap'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='phase2'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'phase2'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='identity'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'identity'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='anonymous_identity'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'anonymous_identity'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='password'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'password'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='client_cert'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'client_cert'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='private_key'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'private_key'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='ca_cert'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'ca_cert'
D/wpa_supplicant( 1294): ap_scan = 2
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd SCAN-ACTIVE len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd SCAN-ACTIVE len =
0, 11
D/wpa_supplicant( 1294): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 1294): Starting AP scan (specific SSID)
D/wpa_supplicant( 1294): wpa_driver_wext_scan: specific scan = 0
D/wpa_supplicant( 1294): Scan requested (ret=0) - scan timeout 30
seconds
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd SCAN-PASSIVE len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd SCAN-PASSIVE len =
0, 12
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI-APPROX len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI len = 4, 4
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len = 9,
9
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI-APPROX len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd RSSI len = 4, 4
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd LINKSPEED len = 9,
9
D/wpa_supplicant( 1294): RTM_NEWLINK: operstate=1 ifi_flags=0x11043
([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 1294): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0'
added
D/wpa_supplicant( 1294): Wireless event: cmd=0x8b19 len=8
D/wpa_supplicant( 1294): Received 3111 bytes of scan results (7 BSSes)
D/wpa_supplicant( 1294): New scan results available
D/wpa_supplicant( 1294): ap_scan = 1
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd SCAN-PASSIVE len =
4096
D/wpa_supplicant( 1294): wpa_driver_priv_driver_cmd SCAN-PASSIVE len =
0, 12
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='ssid'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'ssid'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='bssid'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'bssid'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='priority'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='scan_ssid'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='wep_tx_keyidx'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key0'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key0'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key1'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key1'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key2'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key2'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='wep_key3'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'wep_key3'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='psk'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'psk'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='proto'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='key_mgmt'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='auth_alg'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='pairwise'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='group'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='eap'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'eap'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='phase2'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'phase2'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='identity'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'identity'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='anonymous_identity'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'anonymous_identity'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='password'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'password'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='client_cert'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'client_cert'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0
name='private_key'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'private_key'
D/wpa_supplicant( 1294): CTRL_IFACE: GET_NETWORK id=0 name='ca_cert'
D/wpa_supplicant( 1294): CTRL_IFACE: Failed to get network variable
'ca_cert'


On Sep 6, 10:33 pm, Irfan Sheriff <isher...@gmail.com> wrote:
> All the UI is doing is calling load driver  & a start supplicant followed by
> running dhcp on receiving a connect from supplicant.
>
> If it is only showing "Disconnect->Scanning", it means the association never
> went through. You should verify if all the modules are loaded after doing a
> "turn on". Also, use the wpa_cli interface to debug what is going on in the
> wpa_supplicant.
>
> Irfan
>
>
>
> On Mon, Sep 6, 2010 at 2:46 AM, Edward Pang <edward.knp...@gmail.com> wrote:
> > Hi Everyone,
>
> > Following the information from the link below, I can access webpage by
> > browser through Wifi (Beagleboard + USB dongle RT73).
> >http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi...
>
> > When i try to migrate the fix into froyo, Wifi is always loop in
> > Scanning -> Disconnect stage after pressing Turn On Wi-fi.
>
> > Now, in froyo, i can get IP manually in console by both method below
> > (wpa conf is using UNIX socket configuration):
> > Method 1
> > --------------
> > insmod rt2x00lib.ko
> > insmod rt2x00usb.ko
> > insmod rt73.ko
> > ifconfig wlan0 up
> > wpa_supplicant -D wext -i wlan0 -dd -c wpa_supplicant.conf &
> > dhcpcd -f /system/etc/dhcpcd/dhcpcd.conf -d wlan0
> > (Remark: i got "[: not found" twice after dhcpcd command, but IP can
> > be updated)
>
> > Method 2
> > --------------
> > insmod rt2x00lib.ko
> > insmod rt2x00usb.ko
> > insmod rt73.ko
> > start ifcfg_ralink
> > start wpa_supplicant
> > start dhcpcd
>
> > After method 2, I suppose my wpa_supplicant and dhcpcd works, and
> > init.rc is right.  Am I correct?
> > Can anyone give me some hints or suggestion?
>
> > Edward Pang
>
> > --
> > unsubscribe: 
> > android-porting+unsubscr...@googlegroups.com<android-porting%2Bunsubscribe@ 
> > 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