Hi sommur,
Below is the support page for your laptop on the HP website, from there, download and re-install the MediaTek (Raiilink) WiFi device drivers they recommend for your laptop.
https://support.hp.com/us-en/drivers/selfservic...
________________________________________________________
Standard Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
.