[HTC Sensation] niciuffo:
I'm having an issue with the Wifi on my device. It gets stuck at "Turning on...". I don't think it's a hardware failure since I resolved it on stock RUU by changing the permissions for the /data/misc/wifi/wpa_supplicant.conf to 777.

I tried to do the same thing on this ROM with no luck. logcat says:

01-01 02:10:03.241: E/WifiMonitor(551): startMonitoring(wlan0) failed!
01-01 02:10:03.244: E/WifiStateMachine(551): Failed to setup control channel, restart supplicant
01-01 02:10:08.294: E/WifiStateMachine(551): Unable to change interface settings: java.lang.IllegalStateException: command '70 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 70 Failed to set address (No such device)'
01-01 02:10:08.384: E/wpa_supplicant(2783): Could not read interface wlan0 flags: No such device
01-01 02:10:08.385: E/wpa_supplicant(2783): Could not read interface wlan0 flags: No such device
01-01 02:10:08.385: E/wpa_supplicant(2783): wlan0: Failed to initialize driver interface
01-01 02:10:18.476: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:18.578: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:18.680: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:18.781: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:18.883: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:18.985: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:19.087: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:19.188: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:19.290: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:19.392: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:19.493: E/WifiHW(551): Supplicant not running, cannot connect
01-01 02:10:19.595: E/WifiHW(551): Supplicant not running, cannot connect

It does this 6 times and then it goes on timeout and doesn't try to do anything anymore. There's nothing on dmesg strangely enough.

ifconfig wlan0 up returns this:

error: SIOCGIFFLAGS (No such device)

busybox ifconfig -a:

dummy0 Link encap:Ethernet HWaddr 3A:34:46:4E:82:26
BROADCAST NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ip6tnl0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:1452 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet3 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet4 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
rmnet5 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet6 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet7 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
[NO FLAGS] MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

I think it can't load the proper driver for the wlan interface, and therefor can't communicate with it. Do you have any idea how to fix this?