WiFi stopped working (dhcpd times out) after enabling device encryption WiFi has worked without issue before on this exact same hotspot, and it is currently working for other devices so I'm assuming the error is in the phone (edit: also tried another hotspot, wifi is definitely dead), but after enabling encryption on my device it gets stuck in a loop. It detects the actual network, but it goes like this:

Saved with X authentication... Authenticating... Obtaining IP address...  (Repeat)


I also tried deleting the network and adding it again without success, thinking it had something to do with the cached WPA key. Is there anything I can do to troubleshoot before I just wipe and reinstall? Is this some kind of known issue?

edit: "Solution" Re-locked and unlocked bootloader, flashed recovery via Galaxy Nexus Toolkit and pushed a new AOKP via ADB, installed it and everything is working fine now. No idea what caused it but I'm pretty sure the full device encryption screwed something up. However, since CWM doesn't even support full device encryption, it feels like a bug relating to it is kind of low priority since people shouldn't encrypt their devices with customs ROMs anyway and expect a smooth ride. Thanks.
Might be some  interoperability issue with particular hotspot.If it is a DHCP time out you can try assigning a manual ip address to the particular network.
Or if It is rooted device you can try below command inside adb shell.

dhcpcd wlan0