[T-Mobile LG G3] prata:
I just loaded this, and wifi doesn't seem to want to connect. I came from a clean flash (was on Zone's Rom prior, but want to use ART).

I am testing with another wifi AP, just to be sure; however, it looks like it sits and spins on getting an IP; and eventually just gives up.

So, I logged in via adb shell and had a gander:

root@g3:/system/etc/dhcpcd # ll
drwxr-xr-x root root 2014-07-26 08:57 dhcpcd-hooks
-rw-r--r-- root root 1009 2008-08-01 07:00 dhcpcd-run-hooks
-rw-r--r-- root root 268 2008-08-01 07:00 dhcpcd.conf
root@g3:/system/etc/dhcpcd # ll
drwxr-xr-x root root 2014-07-26 08:57 dhcpcd-hooks
-rw-r--r-- root root 1009 2008-08-01 07:00 dhcpcd-run-hooks
-rw-r--r-- root root 268 2008-08-01 07:00 dhcpcd.conf

I haven't looked at a working config, but files like dhcpcd-run-hooks is a shell script. Does it needs to be executable at all?

You'll note the dhcpcd-hooks directory has correct perms (all directories should be 755).

---------- Post added at 10:09 AM ---------- Previous post was at 09:22 AM ----------

To follow up, I went ahead and poked around at logcat. I used the following to only grab error from the wifi state machine:

adb logcat WifiStateMachine:E *:S -v long > wifi.txt

Which reported the following:

prata@Pensri ~ $ tail -f wifi.txt
E/WifiStateMachine( 1001): IP configuration failed
E/WifiStateMachine( 1001): scanCount==0 - aborting
E/WifiStateMachine( 1001): CheckDhcpInfoCacheList : DhcpStateMachine.CMD_PRE_DHCP_ACTION[ConnectingState]
E/WifiStateMachine( 1001): IP configuration failed
E/WifiStateMachine( 1001): Failed 4 times, Disabling 0
E/WifiStateMachine( 1001): scanCount==0 - aborting
E/WifiStateMachine( 1001): CheckDhcpInfoCacheList : DhcpStateMachine.CMD_PRE_DHCP_ACTION[ConnectingState]
E/WifiStateMachine( 1001): IP configuration failed
E/WifiStateMachine( 1001): scanCount==0 - aborting
E/WifiStateMachine( 1001): CheckDhcpInfoCacheList : DhcpStateMachine.CMD_PRE_DHCP_ACTION[ConnectingState]
E/WifiStateMachine( 1001): IP configuration failed
E/WifiStateMachine( 1001): scanCount==0 - aborting
E/WifiStateMachine( 1001): CheckDhcpInfoCacheList : DhcpStateMachine.CMD_PRE_DHCP_ACTION[ConnectingState]
E/WifiStateMachine( 1001): IP configuration failed
E/WifiStateMachine( 1001): scanCount==0 - aborting
E/WifiStateMachine( 1001): CheckDhcpInfoCacheList : DhcpStateMachine.CMD_PRE_DHCP_ACTION[ConnectingState]
E/WifiStateMachine( 1001): IP configuration failed
E/WifiStateMachine( 1001): Failed 4 times, Disabling 1
E/WifiStateMachine( 1001): scanCount==0 - aborting
E/WifiStateMachine( 1001): CheckDhcpInfoCacheList : DhcpStateMachine.CMD_PRE_DHCP_ACTION[ConnectingState]

Looked a little lean, because I'm not capturing the negotiation piece. So, I poked around a little bit more. I've made numerous permission changes to the /system/etc/dhcpcd/dhcpcd-hooks directory; however, nothing changes between reboots. This inclues changing the directory to 777.

To be clear, wifi was working before I factory reset and flashed this ROM. The wifi connection issue is interesting, because it's timing out on getting an IP, then flipping to my second AP and attempting there as well; where it then times out and goes back to the other interface.

I tried this with my second AP and received similar results. DHCP simply fails due to time out (from what I can gather).

It appears that the selinux contexts are correct as well; I had a look-see while I was fiddling; however, I don't have stock to compare to, they seem sane at any rate.