[Xperia Arc Q&A, Help & Troubleshooting] 3enD:
Hi guys,

I've got a rooted ARC S currently running on a nightly version of CyanogenMod 10 that will not connect to wifi points.

I've gone through tons of threads and forums for a solution and none of them work.

The wifi points are detected with decent to very strong signal but when I try to connect it either sits on "connecting...", switches between "saved" and "obtaining IP address" or in the case of WPA protected networks; between "authenticating" and "connecting..." and "obtaining IP address".

Most of the time it ends up with "Avoided poor connection".

I only currently have access to public wifi networks so cannot modify the router settings, but I have tried creating a virtual hosted network (rebroadcasting a network through my pc)(see below).

Here's what I've tried:

-Factory reset, wiping cache and Dalvik cache multiple times

-Virtual hosted network

***I've tried rebroadcasting a public wifi through my pc and it connected, but at the time the network wasn't connected to the internet. When I managed to connect the network to the internet it would no longer connect to the network***

-Changing ROM

Problem started on CyanogenMod 9 (stable release), I've tried stock Sony ICS ROM (Doomlord version), stock Xperia Gingerbread and tried rebooting CyanogenMod 10.

***One time after flashing CyanogenMod 9 the wifi started working again for about 3 hours, but then failed and hasn't worked since***

-Deleting data/misc/dhcp file

I didn't actually have a file in the data/misc/ directory but I tried deleting the folder in case the file was hidden but nothing changed.

-Debugging with ADB

I've connected to ADB debugging while trying to connect to a working wifi point and these are some of the (hopefully relevant) messages I got on Logcat.

WIFI OFF

WIFI ON AUTOCONNECT ON

(error) WifiStateMachine Failed to set country code fr (I live in France)

(error) WifiStateMachine Failed to set frequency band 2

(warn) wpa_supplicant wlan0: Failed to initiate AP scan

(info) wpa_supplicant wlan0: Associated with 66:6d:57:dd:50:f3

(info) wpa_supplicant wlan0: Key negotiation completed with 66:6d:57:dd:50:f3

(error) DhcpStateMachine DHCP failed on wlan0: Timed out waiting for dhcpcd to start

(error) WifiStateMachine IP configuration failed

(info) wpa_supplicant wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3

...

(debug) CommandListener Clearing all IP addresses on wlan0

(debug) ConnectivityService ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED

...

(info) wpa_supplicant wlan0: SME: Trying to authenticate with 66:6d...

(info) wpa_supplicant wlan0: Trying to associate with 66:6d...

(info) wpa_supplicant wlan0: Associated with 66:6d...

(info) wpa_supplicant wlan0: Key negotiation completed with 66:6d...

(info) wpa_supplicant wlan0: CTRL_EVENT_CONNECTED - Connection to 66:6d...

...

(debug) ConnectivityService handleInetConditionChange: no active default network - ignore

...

(info) UpdateCheckReciever Got connectivity change, has connection: false

...

(error) DhcpStateMachine DHCP failed on wlan0: Timed out waiting for dhcpcd to start

(error) WifiStateMachine IP configuration failed

I know that's probably way too much information but I've tried everything I can think of. Any help would be awesome.