[Nexus One Q&A, Help & Troubleshooting] Timmmmmm:
Hi, yet another Nexus One wifi problem.

I'm using LeoFroyo, so I don't know if this is a problem with froyo, or that particular ROM. Anyway, basically when I press 'Scan' in the wifi settings, literally nothing happens. The list is really out of date, not showing nearby networks, and the status under the Wi-Fi checkbox is 'Disabled'. This is the output from logcat (searching for WiFi and wpa):

E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
I/wpa_supplicant( 250): Authentication with 00:00:00:00:00:00 timed out.
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=7 state=0 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): Trying to associate with SSID 'worcesterbeerfestival'
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): Authentication with 00:00:00:00:00:00 timed out.
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=9 state=0 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): Trying to associate with SSID 'Tomato'
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
I/wpa_supplicant( 250): Authentication with 00:00:00:00:00:00 timed out.
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=10 state=0 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
I/wpa_supplicant( 250): Trying to associate with SSID 'Imperial-WPA'
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...
E/wpa_supplicant( 250): Ongoing Scan action...

Imperial-WPA is the correct network that is nearby. The others are remembered networks (well, Imperial-WPA is too).

Anyway, if I then disable wifi and re-enable it, this happens:

I/wpa_supplicant( 250): CTRL-EVENT-TERMINATING - signal 15 received
I/wpa_supplicant( 250): CTRL-EVENT-TERMINATING - signal 0 received
I/wpa_supplicant( 250): CTRL-EVENT-STATE-CHANGE id=2 state=0 BSSID=00:00:00:00:00:00
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
I/wpa_supplicant(25319): Trying to associate with 00:1e:13:6e:81:00 (SSID='Imperial-WPA' freq=2412 MHz)
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:1e:13:6e:81:00
E/wpa_supplicant(25319): Ongoing Scan action...
E/wpa_supplicant(25319): Ongoing Scan action...
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=0 state=4 BSSID=00:1e:13:6e:81:00
I/wpa_supplicant(25319): Associated with 00:1e:13:6e:81:00
I/wpa_supplicant(25319): CTRL-EVENT-EAP-STARTED EAP authentication started
I/wpa_supplicant(25319): CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
I/wpa_supplicant(25319): EAP-MSCHAPV2: Authentication succeeded
I/wpa_supplicant(25319): EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
I/wpa_supplicant(25319): CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID=00:00:00:00:00:00
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=0 state=5 BSSID=00:00:00:00:00:00
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=0 state=6 BSSID=00:00:00:00:00:00
I/wpa_supplicant(25319): WPA: Key negotiation completed with 00:1e:13:6e:81:00 [PTK=CCMP GTK=TKIP]
I/wpa_supplicant(25319): CTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=00:00:00:00:00:00
I/wpa_supplicant(25319): CTRL-EVENT-CONNECTED - Connection to 00:1e:13:6e:81:00 completed (auth) [id=0 id_str=]

I.e. it totally works and automatically connects. What the ****. Anyone have any ideas?