Does this happen on all wifi networks or just on one wifi network?
If this is the case delete the remembered network and reconnect see if that will fix it.
Recommended steps to remediate below
Remove the device from device manager and reinstall.
What manufacture is the network device?
Confirm you have the latest drivers for the wifi device..
Test from a bootable os like hirens boot cd or a windows pe enviroment and see if you can connect from wifi then to confirm and rule out it being a hardware issue.
Please respond back with the information above and or let me know if the recommendations help. Have a good one.