Hi,
     I'm having an issue with android-2.2.1 where wifi cannot get AP
SSID after turning off and turn on the wifi from the settings control
panel.

I'm using wpa_supplicant_6 from the android-2.2.1_r1 release.

I've been struggling with this issue for the past 4 weeks and tried
various combinations of wpa_supplicant, e.g. 0.5.10 from the
android-1.5r3 release where it used to work fine.

With android-2.2.1, and any of the wpa_supplicant releases, it doesn't
detect the SSID if you turn off and turn the wifi back on.

If you try to manually associate with the AP the second time around,
by manually entering the SSID (Olympus2 in my case), it connects
immediately. The same goes for a full system reboot, it connects to
the AP automatically after a full system restart.

However, if you just turn off and turn back the wifi on, it doesn't
automatically associate with the AP.

I am using a Ralink RT3070USB wifi module, with a gumstix Overo Earth
(TI OMAP 3503) module. Another friend who is working on a similar
platform called the AI Touchbook is also experiencing the same issue.
I have seen numerous other postings on many other forums with people
with Motorola Droid etc, having the same issue with android-2.2.

This is probably something in the android-2.2 code base in the layers
above the wpa_supplicant, perhaps with WifiManager or WifiService?

Could you please help me troubleshoot this issue?

Here is an excerpt from logcat, from the point that I turn wifi back
on the second time:

connect to supplicant done
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd RSSI-APPROX
D/wpa_supplicant( 1352): >>>. DRIVER AWEXT RSSI
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd LINKSPEED
D/wpa_supplicant( 1352): Link Speed command
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCGIWSTATS]: Operation
not supported on transport endpoint
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd MACADDR
V/WifiStateTracker(  969): Connection to supplicant established,
state=SCANNING
D/NetworkStateTracker(  969): setDetailed state, old =DISCONNECTED and
new state=SCANNING
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd RXFILTER-
ADD 0
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd BTCOEXSCAN-
STOP
D/ConnectivityService(  969): Dropping ConnectivityChange for WIFI:
DISCONNECTED/SCANNING
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCGIWRATE]: Network is
down
INFO::Network is down!
D/wpa_supplicant( 1352): Scan timeout - try to get results
D/wpa_supplicant( 1352): Failed to get scan results
D/wpa_supplicant( 1352): Failed to get scan results - try scanning
again
D/wpa_supplicant( 1352): Setting scan request: 1 sec 0 usec
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCGIWSCAN]: Network is
down
D/wpa_supplicant( 1352): StartinINFO::Network is down!
g AP scan (broadcast SSID)
D/wpa_supplicant( 1352): wpa_driver_wext_scan: specific scan = 0
D/wpa_supplicant( 1352): Scan requested (ret=-1) - scan timeout 5
seconds
W/wpa_supplicant( 1352): Failed to initiate AP scan.
D/wpa_supplicant( 1352): Setting scan request: 10 sec 0 usec
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCSIWSCAN]: Network is
down
D/wpa_supplicant( 1352): AWEXT: INFO::Network is down!
wpa_driver_priv_driver_cmd SCAN-ACTIVE
D/wpa_supplicant( 1352): Scan Active command
D/wpa_supplicant( 1352): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 1352): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1352): wpa_driver_wext_scan: specific scan = 0
D/wpa_supplicant( 1352): Scan requested (ret=-1) - scan timeout 5
seconds
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCSIWSCAN]: Network is
down
W/wpa_supplicant( 1352): Failed to initiate AP scan.
D/wpa_supplicant( 1352): Setting scan request: 10 sec 0 usec
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd SCAN-
PASSIVE
D/wpa_supplicant( 1352): Scan Passive command
INFO::Network is down!
D/wpa_supplicant( 1352): Scan timeout - try to get results
D/wpa_supplicant( 1352): Failed to get scan results
D/wpa_supplicant( 1352): Failed to get scan results - try scanning
again
D/wpa_supplicant( 1352): Setting scan request: 1 sec 0 usec
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCGIWSCAN]: Network is
down
D/wpa_supplicant( 1352): AWEXT: INFO::Network is down!
wpa_driver_priv_driver_cmd SCAN-ACTIVE
D/wpa_supplicant( 1352): Scan Active command
D/wpa_supplicant( 1352): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 1352): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1352): wpa_driver_wext_scan: specific scan = 0
D/wpa_supplicant( 1352): Scan requested (ret=-1) - scan timeout 5
seconds
W/wpa_supplicant( 1352): Failed to initiate AP scan.
D/wpa_supplicant( 1352): Setting scan request: 10 sec 0 usec
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd SCAN-
PASSIVE
D/wpa_supplicant( 1352): Scan Passive command
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCSIWSCAN]: Network is
down
INFO::Network is down!
D/wpa_supplicant( 1352): Scan timeout - try to get results
D/wpa_supplicant( 1352): Failed to get scan results
D/wpa_supplicant( 1352): Failed to get scan results - try scanning
again
D/wpa_supplicant( 1352): Setting scan request: 1 sec 0 usec
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCGIWSCAN]: Network is
down
D/wpa_supplicant( 1352): AWEXT: INFO::Network is down!
wpa_driver_priv_driver_cmd SCAN-ACTIVE
D/wpa_supplicant( 1352): Scan Active command
D/wpa_supplicant( 1352): Setting scan request: 0 sec 0 usec
D/wpa_supplicant( 1352): Starting AP scan (broadcast SSID)
D/wpa_supplicant( 1352): wpa_driver_wext_scan: specific scan = 0
D/wpa_supplicant( 1352): Scan requested (ret=-1) - scan timeout 5
seconds
W/wpa_supplicant( 1352): Failed to initiate AP scan.
D/wpa_supplicant( 1352): Setting scan request: 10 sec 0 usec
D/wpa_supplicant( 1352): AWEXT: wpa_driver_priv_driver_cmd SCAN-
PASSIVE
D/wpa_supplicant( 1352): Scan Passive command
I//system/bin/wpa_supplicant( 1351): ioctl[SIOCSIWSCAN]: Network is
down

Best regards,

Elvis Dowson

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to