Open the Settings app on your phone.
Select Network & Internet from the drop-down menu. Internet. If you can't find it, look for the setting you're looking for.
Tap Network options at the bottom.
Select an option by tapping it. These differ depending on the phone and Android version. Automatically turn on Wi-Fi: Allow Wi-Fi to turn on automatically when you're near a stored network.