Question Wi fi disconnects and can not reconnect.

Feb 10, 2020
I have a hp laptop and a Wi-Fi problem.
When i first start the laptop it connects to internet and runs for like 5 minutes then disconnects and never connects again. If i restart my computer it is the same- 5 minutes of internet and then no connection.
Things that i have tried
-i installed a brand New windows 10 (it had 8.1 before.)
-i tried putting a usb wi fi card (802.11n) and it is the same.
-the drivers for the lan card are up to date.
-Tried using a cabled connection (no problem, works great)
-the wi fi is perfect i use it from my phone and another laptop.

The lan card is the Ralink RT3290 and the laptop is hp 250 running the slow celeron n2840 with 4 gigs of ram.