Usually, WiFi problems are related to driver's malfunction. Please go to Device Manager (Start > Run > devmgmt.msc) and check if all the components are working fine.
Another way is to remove the WiFi drivers and perform a reinstall leaving all the options to their default values then try to connect again.