Welcome to Android Central! Does the wi-fi toggle switch turn on when you tap it, but then turn off on its own? Or does it stay on, but just drop the network?
I am having the same problem. Wifi keeps turning on and off. It will not stay on long enough to get connected to any network. I wiped the system partition, and the problem is still there.