Help Wifi Keeps shutting off and turning back on.

When i activate my wifi it turns on and works, but it shuts itself off like there is no connection (goes grey) and than turns it self right back on. Anyone know a fix for this? Its a Metro Pcs phone, the battery life is horrid (about 3-4 hours with it in idle). Im thinking of rooting it, but not sure what i can do to improve these problems.