If you have found a suitable driver and the Wi-Fi connection is not lost with it, it is recommended to prevent Windows from automatically updating driver for this device. So, you should try to use an older version of the driver that remained in the local driver repository on your computer (see this rollback example). If the problem with the disconnection from your Wi-Fi network had appeared suddenly, Windows may have automatically updated the driver of your Wi-Fi adapter recently.
Prior to moving to the next method, try to download and install the latest version for your Wi-Fi adapter drivers from the vendors’s website.
Disable Power Saving Mode for Wireless Adapter.