Hello, it can be software or hardware problem. Use any bootable OS from FlashDrive and try WiFi connection, if it works, then try to update drivers on your original OS. In some cases it may need to reinstall OS. IF it hardware problem - replace WiFi card. Looks like it due to WiFi frequency. Hope driver update will help you! You can find correct drivers for update using original manufacturer(of WiFi card, not laptop) website, or from HP website, maybe OS can update driver correct itself. To get driver from original manufacturer website you need get device ID from system settings of your OS, or remove WiFi card and read it from label. Best regards!