iOS: auto-repair unreliable/malfunctioning Wi-Fi connection?
Unfortunately, there is no way to configure your wifi settings without jailbreaking and installing a non-approved third-party application. By default applications on iOS devices are not granted access to configure wifi settings. Sorry.