Before reinstalling anything, work through this list — most Wi-Fi drops come down to one of these causes.
Tip: Work top to bottom — the first two steps fix most cases. To take a screenshot of the Wi-Fi status for support, press ⇧⌘4 and drag over the menu-bar icon.
Rule out the obvious
Check whether other devices on the same network drop too. If they do, the problem is the router or internet line, not the Mac.
Forget and rejoin the network
In Wi-Fi settings, remove the network, then join it again. Stale credentials are a classic cause.
Renew the DHCP lease
Open Network settings, go to Details for the current network, then use the option to renew the DHCP lease.
Reboot the router once
Power the router off for 30 seconds, then on. It clears stuck client tables.
Try a new network location
Network settings can store conflicting setups. Create a fresh location with a new name and re-enter your Wi-Fi details.