Same thing with my galaxy s4 I haven't been able to use my wifi for weeks now, I took the battery out of the phone for a total of 10 minutes and restarted and.... wallah my wifi is on and working, Hallelujah!!!
Anyone else having the same issue do yourself a favor and try this first, rather...