Welcome to Android Central! What's the name of the wi-fi network? If it's some generic router name like "linksys," or if it's "xfinitywireless," then the phone might be trying to connect to a nearby network with the same name but with different credentials (or the free Xfinity hotspot near you might have been disabled by the person who owns that router).