Go to command and try:
ipconfig /release and then ipconfig /renew
If it fails
I'm sorry if its not a big help but we need more info on what's really happening and how.
EG: Is all the WiFi's gone or if you can't just connect back.
It could also be a power setting making it sleep and when it tries to wake up, it fails.
The Englishman