[G1 Android Development] smihaylov:
I have a very strange problem. My WiFi can't find any networks when scanning.

The driver is loading and there are no errors.

dmesg output:

<6>[ 301.071329] TIWLAN: Driver loading
<4>[ 301.071757] trout_wifi_power: 1
<4>[ 301.317952] trout_wifi_reset: 0
<4>[ 301.368348] trout_wifi_set_carddetect: 1
<7>[ 301.368654] mmc0: card_present 1
<6>[ 301.368928] mmc0: Slot status change detected (0 -> 1)
<4>[ 301.380475] mmc0: card claims to support voltages below the defined range. These will be ignored.
<4>[ 301.380475] mmc0: SDIO card claims to support the incompletely defined 'low voltage range'. This will be ignored.
<6>[ 301.380475] mmc0: new SDIO card at address 0001
<6>[ 301.380475] TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)
<6>[ 301.384045] TIWLAN: Driver initialized (rc 0)
<6>[ 301.384442] TIWLAN: Driver loaded

log output when starting WiFi and scanning for network:

D/SettingsWifiEnabler( 229): Received wifi state changed from Disabled to Enabling
D/wlan_loader( 313): adapter tiwlan0, eeprom /proc/calibration, init /system/etc/wifi/tiwlan.ini, firmware /system/etc/wifi/Fw1251r1c.bin
D/wlan_loader( 313): Configuring adapter
D/wlan_loader( 313): Adapter configuration rc = 0
D/wlan_loader( 313): Starting configMge
D/wlan_loader( 313): ConfigMge start rc = 0
D/wlan_loader( 313): Driver configured
D/wlan_loader( 313): Firmware loaded and running OK
D/wlan_loader( 313): Set property wlan.driver.status = ok - Ok
I/BluetoothHeadset( 54): Proxy object is now connected to Bluetooth Headset Service
V/WifiStateTracker( 54): Connection to supplicant established, state=INACTIVE
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1]
V/WifiStateTracker( 54): Changing supplicant state: INACTIVE ==> INACTIVE
D/SettingsWifiEnabler( 229): Received wifi state changed from Enabling to Enabled
I/dalvikvm( 54): threadid=15: bogus mon 1+0>0; adjusting
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 54): Changing supplicant state: INACTIVE ==> SCANNING
D/SettingsWifiEnabler( 229): Received wifi state changed from Enabling to Enabled
V/WifiMonitor( 54): Event [CTRL-EVENT-SCAN-RESULTS Ready]
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1]
V/WifiStateTracker( 54): Changing supplicant state: SCANNING ==> INACTIVE
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 54): Changing supplicant state: INACTIVE ==> SCANNING
V/WifiMonitor( 54): Event [CTRL-EVENT-SCAN-RESULTS Ready]
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1]
V/WifiStateTracker( 54): Changing supplicant state: SCANNING ==> INACTIVE
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker( 54): Changing supplicant state: INACTIVE ==> SCANNING
V/WifiMonitor( 54): Event [CTRL-EVENT-SCAN-RESULTS Ready]
V/WifiMonitor( 54): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=1]
V/WifiStateTracker( 54): Changing supplicant state: SCANNING ==> INACTIVE

and so on.. INACTIVE ==> SCANNING and SCANNING ==> INACTIVE is repeating forever.

But no scan results. I tried it with 3 different routers.

It was working a week ago, but suddenly stopped. I did reflash to RC29, then RC30. I am with ADP1 now.

Can I do something to get it working? Is it a hardware problem?

Thanks a lot!