Hi jjorge002,
If the issue is with your router, the settings here are meant to give you the most optimized settings: Recommended settings for Wi-Fi routers and access points - Apple Support
For a disconnection issue, these may be key:
"Channel
Set to Auto
Each band of your router is divided into multiple, independent communication channels, like lanes in a street. When channel selection is set to automatic, your router selects the best Wi-Fi channel for you.
If your router doesn't support automatic channel selection, choose whichever channel performs best in your network environment. That varies depending on the Wi-Fi interference in your network environment, which can include interference from any other routers and devices that are using the same channel. If you have multiple routers, configure each to use a different channel, especially if they are close to each other."
We hope this helps.
Cheers!