Check for any battery saver settings being turned on... it might be that it's turning off the wifi to conserve power.
open