Hey guys.. I faced similar issue in my AMOI 820 based Indian local device Micromax (rooted + custom kernal)
I fixed this stuck wifi problem by uninstalling Google apps in system by removing them using Titanium back up + and again installing them from playstore if needed.. Hangouts(in my case) if it's a system app after getting updated is the culprit .. Try removing it and reboot and test it yourself..
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?