[G1 Q&A, Help & Troubleshooting] gtabmx:
Hi, I have been using a stable early version of CM5 on my T-Mobile G1 for about 5 months and one day (about 1 week ago) the WiFi failed while connecting to my home network, and since then, the WiFi has been in an error state; not being able to bee off or on. On the Power Widget, the WiFi indicator has a faded blue bar and even trying to enable it within the Android settings fails and says "error" as the state (as opposed to "Connected" or "Off").

I have tried rebooting, shutting down, removing the battery for a minute, and even wiping completely and re-flashing with CM 6.0 DS stable, yet the issue persists.

Oddly, when I do "netcgf" in the terminal emulator, I don't see a eth0 or wlan0 to tiwlan0 as a device. I only get this:

lo UP 127.0.0.1 255.0.0.0 0x00000049

dummy0 DOWN 0.0.0.0 0.0.0.0 0x00000082

ifb0 DOWN 0.0.0.0 0.0.0.0 0x00000082

ifb1 DOWN 0.0.0.0 0.0.0.0 0x00000082

rmnet0 DOWN 0.0.0.0 0.0.0.0 0x00001002

rmnet1 DOWN 0.0.0.0 0.0.0.0 0x00001002

rmnet2 DOWN 0.0.0.0 0.0.0.0 0x00001002

usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002

So I though my wlan hardware was not initialized properly, so I went through dmesg and the driver seems to have loaded and encountered an error and then uloaded as seen by the following:

<6>[ 364.669433] TIWLAN: Driver loading

<4>[ 364.669952] wifi_probe

<4>[ 364.672363] trout_wifi_power: 1

<4>[ 364.859588] trout_wifi_reset: 0

<4>[ 364.902343] trout_wifi_set_carddetect: 1

<7>[ 364.902770] mmc0: card_present 1

<6>[ 364.902984] mmc0: Slot status change detected (0 -> 1)

<4>[ 367.466888] mmc0: card claims to support voltages below the defined range. These will be ignored.

<6>[ 367.473815] mmc0: new SDIO card at address 0001

<6>[ 367.481750] TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)

<6>[ 367.495544] TIWLAN: Driver initialized (rc 0)

<4>[ 367.497406] TIWLAN: 1251 PG 1.2

<6>[ 367.497924] TIWLAN: Driver loaded

<4>[ 367.916229] select 611 (android.protips), adj 9, size 3310, to kill

<4>[ 367.916900] send sigkill to 611 (android.protips), adj 9, size 3310

<3>[ 370.497741] mmc0: Data timeout

<3>[ 370.497863] SDIO_SyncRead: failed (-110)

<3>[ 370.498382] TIWLAN: TIWLAN: Failed to start config manager

<6>[ 387.593353] TIWLAN: Driver unloading

<6>[ 389.263336] TIWLAN: 4241.654203: sdio_reset_comm():

<4>[ 389.286865] mmc0: Error resetting SDIO communications (-110)

<7>[ 389.554901] TIWLAN: Releasing SDIO resources

<7>[ 389.557556] TIWLAN: SDIO resources released

<4>[ 389.560882] wifi_remove

<4>[ 389.561370] trout_wifi_set_carddetect: 0

This repeats a few times before the phone just gives up trying to load the driver.

Another instance later on of afailed attempt to load the driver is shown here:

TIWLAN: Driver loading

<4>[ 482.536315] wifi_probe

<4>[ 482.536773] trout_wifi_power: 1

<4>[ 482.767944] trout_wifi_reset: 0

<4>[ 482.815704] trout_wifi_set_carddetect: 1

<7>[ 482.815948] mmc0: card_present 1

<6>[ 482.816345] mmc0: Slot status change detected (0 -> 1)

<4>[ 485.376586] mmc0: card claims to support voltages below the defined range. These will be ignored.

<6>[ 485.380371] mmc0: new SDIO card at address 0001

<6>[ 485.387268] TIWLAN: Found SDIO controller (vendor 0x104c, device 0x9066)

<6>[ 485.397033] TIWLAN: Driver initialized (rc 0)

<4>[ 485.398773] TIWLAN: 1251 PG 1.2

<6>[ 485.399230] TIWLAN: Driver loaded

<3>[ 487.699493] mmc0: Data timeout

<3>[ 487.699829] SDIO_SyncRead: failed (-110)

<3>[ 487.701110] TIWLAN: TIWLAN: Failed to start config manager

<4>[ 489.264953] select 704 (android.vending), adj 7, size 3865, to kill

<4>[ 489.265380] send sigkill to 704 (android.vending), adj 7, size 3865

<6>[ 505.471527] TIWLAN: Driver unloading

<6>[ 507.093597] TIWLAN: 64.402242: sdio_reset_comm():

<4>[ 507.117187] mmc0: Error resetting SDIO communications (-110)

<7>[ 507.379547] TIWLAN: Releasing SDIO resources

<7>[ 507.382232] TIWLAN: SDIO resources released

<4>[ 507.385589] wifi_remove

<4>[ 507.386077] trout_wifi_set_carddetect: 0

<7>[ 507.386901] mmc0: card_present 0

<6>[ 507.387359] mmc0: Slot status change detected (1 -> 0)

<6>[ 507.388397] mmc0: card 0001 removed

Has anyone experienced this and/or have a fix? It seems like I need to replace a file or two for the TIWLAN driver.

I have attached the entire dmesg from first boot of CM6 to now, which is about 5 minutes worth (not much).

Thanks a lot,

Mike