Go to settings/display/screen saver & enable it. It seems to keep the wifi running. Hope I can help. I know it is an old thread but people still use this phone & this search is #1 on googling "s7 wifi keeps disconnecting" Hope to help people like me.