The most common reason: you don't use the right password for the WiFi. Delete the connection data (ssid, password) and enter them again when defining it again.
In such cases it doesn't work at your current location, but it does work on public hotspots and elsewhere (if you make the connection correctly). Try that if it keeps going wrong where you are now.
I have hp pavilion g6 laptop nowadays it's wifi is not working showing limited access so how to recover this problem please suggest any solution