"Ready to connect when quality improves"
In my case, I had a manual proxy configured for this WiFi, and the proxy was not working correctly.

Removing the manual proxy configuration solved the problem.

To check if you have one, tap the WiFi, then tap "Advanced", then make sure "Proxy" is set to "None".