[G3 Q&A, Help & Troubleshooting] dethix:
Hello everybody,

i'm new to this board as a poster, but been reading over the last ~ 10 years.

I've been searching here (and about everywhere) else for my problem and tried every suggested solution - even putting it in the fridge or restarting it during full moon reciting the most popular quotes from Linus Torvalds backwards... nothing worked. So you guys and girls are my last resort...

I am running Cyanogen Mod 12.1 (most actual nightly builds) on a LG G3 (d855) phone.

Problem:

After scanning for APs, mine (or the ones i have credentials to) are found, but i can't connect. It tells me "Authentication error".

As being an android developer myself i also tried to dig in. According to logcat the following happens after i activate wifi (with filter for "error"):

11-12 17:59:43.899 814-1537/? E/WifiService﹕ Invoking mWifiStateMachine.setWifiEnabled
11-12 17:59:44.718 814-1079/? E/WifiMonitor﹕ killSupplicant p2ptrue init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
11-12 17:59:44.733 814-1079/? E/WifiHW﹕ Unable to open connection to supplicant on "@android:wpa_wlan0": No such file or directory
11-12 17:59:44.865 814-1079/? E/WifiConfigStore﹕ Error parsing configuration: java.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
11-12 17:59:44.874 814-1079/? E/WifiHAL﹕ virtual int WifiVendorCommand::create() ifindex obtained:30
11-12 17:59:44.874 814-1079/? E/WifiHAL﹕ virtual int WifiVendorCommand::set_iface_id(const char*) ifindex obtained:30
11-12 17:59:44.875 814-1079/? E/WifiHAL﹕ wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle, byte*): requestResponse Error:-524
11-12 17:59:44.890 814-1093/? E/WifiHAL﹕ wifi_error wifi_get_gscan_capabilities(wifi_interface_handle, wifi_gscan_capabilities*): GSCAN is not supported by driver
11-12 17:59:44.890 814-1093/? E/WifiScanningService﹕ could not get scan capabilities
11-12 17:59:49.005 814-1079/? E/WifiStateMachine﹕ WifiStateMachine Disconnected CMD_START_SCAN source -2 104, 107 -> obsolete
11-12 17:59:49.008 814-1079/? E/WifiStateMachine﹕ WifiStateMachine Disconnected CMD_START_SCAN source -2 105, 107 -> obsolete
11-12 17:59:54.899 814-1079/? E/WifiStateMachine﹕ WifiStateMachine Disconnected CMD_START_SCAN source -2 106, 107 -> obsolete
11-12 18:00:07.046 814-1079/? E/WifiConfigStore﹕ rewrite network history for "ch4os"-WPA_PSK

After deactivation:

11-12 18:00:51.844 814-1789/? E/WifiService﹕ Invoking mWifiStateMachine.setWifiEnabled
11-12 18:00:51.869 814-1079/? E/WifiStateMachine﹕ Unexpected BatchedScanResults :null
11-12 18:00:51.885 814-1079/? E/WifiStateMachine﹕ SupplicantStoppingState: stopSupplicant init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown

This error appeared without any direct cause but COULD be related to an update to the most recent nightly, i haven't tried wifi for ~ 1 day after updating.

What i did for solving this problem:

Complete Wipe (Factory reset / advanced wipe using TWPR)

Trying another wifi config on the router (works fine for other devices)

The superstitious deactivate-wifi/airplane mode/restart/re-activate wifi without deactivating airplane mode

Note: after this it worked for like 5 seconds; was not reproducable afterwards

Putting it in the fridge, restarting and trying again

Ensuring wpa_supplicant.conf in /data/misc/wifi/ has permission system:wifi or wifi:wifi and chmod 660 (rw-rw----)

Deleting wpa_supplicant.conf

IMHO is this issue not related to my settings, because it even did not work after a full wipe.

This just does not make any sense to me anymore... Any suggestion is very much appreciated!

Kind regards