Windows uses the Wi-Fi profile to save the settings that are needed to connect to a Wi-Fi network. These settings include the network security type, key, network name (SSID), and so on. If you can’t connect to a Wi-Fi network that you could connect to before, it’s possible that the network settings might have changed or the profile is corrupted.
To fix this, remove (or "forget") the network connection, then reconnect to the network. When you forget a network connection, it removes the Wi-Fi network profile from your PC.
To forget a network:
Select the Wi-Fi network icon on the right side of the taskbar, then select Network & Internet settings.
Select Wi-Fi , then select Manage known networks.
Select the network you want to forget, then select Forget.
Afterwards, select the Wi-Fi icon on the taskbar and try to reconnect to the desired network to renew the network connection.