FWIW, just because it is powered on and broadcasting its SSID / network name doesn't guarantee that it is actually connected to the internet.
In wifi menu, click "forget network" for both lowercase xfinity and uppercase XFINITY wifi networks. Then retry. Can you get any other xFiNiTy hotspots working that used to work before if you wander a bit? Have you tried the 'xfinity-hotspot app' to see the locations of current/legit hotspots? I hope your nearby hotspot shows up on the legit hotspot map! The hotspot may have been swapped or reconfigured or moved. Does your phone pop up a dialog box that says "please move closer to the network in order to connect"? Do you have the hotspot-profile installed, especially if its an iPhone? Please do install the xfinity hotspot-profile - it is probably the best way to ensure that you are connecting to a legit xfinity hotspot and not to a fake/man-in-the-middle-attack hotspot.