I'm experiencing the same problem. Note that I have tried both wpa_supplicant 5 and 6 with AWEXT or WEXT driver. So it's definitely a problem in the upper stack of Android.
When the disconnection occurs, the wifi stops too. It means that the framework is sending to the driver through wpa_supplicant a stop command. But if I enter a SSID that exists on the wireless network, the framework manages to restart the dongle! But even if I stop/restart the wifi through the UI (even after an rmmod of the driver), it won't scan anymore until the next reboot. More info here: http://bugzilla.alwaysinnovating.com/show_bug.cgi?id=157 Note that it's also related to this bug: http://groups.google.com/group/android-porting/browse_thread/thread/abb7410a2272f2c/0e413a5b461959f4?lnk=gst&q=wifi++gregoire#0e413a5b461959f4 Grégoire On Nov 23, 5:34 pm, Irfan Sheriff <[email protected]> wrote: > > However, if you just turn off and turn back the wifi on, it doesn't > > automatically associate with the AP. > > You need to have more debugging enabled in the framework (WifiService & > WifiStateTracker) to understand what is happening in the framework. > Log the sequence of driver commands issued to the wpa_supplicant to further > figure out if there is something wrong. > > > > > 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 > > Look at why these failures are happening. why are scans failing ? These > failures seem to repeat in the rest of the log. > > How is it showing up in the UI. Is the network getting disabled ? Do you see > scan results ? can you select and associate instead of entering the AP > details ? -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
