My S3 will disconnect the wifi when charging at night. I leave my phone on & have the Samsung charger but the wifi will connect when charging. I did a soft reset but the issue remains.
Once it disconnects, does it reconnect automatically when you turn the screen on?
I would suggest checking the sleep policy under the advanced wifi settings.