Change your IP setting to Static not DHCP. That worked for me. All you do is go to settings -> Wi-Fi -> Press and hold the network you want to connect to -> Modify network -> IP settings. Change it to Static and continue to fill in the IP addresses etc. And save. Works if you know your network settings"
"I found this on/off problem. Just if you use the CM security, there you have an option called lockApp on default this lock the WiFi, when you choose to not lock the WiFi, gone alright.