Hello and welcome to Tom's Hardware Forums.
Does it disconnect only when you aren't using it? If so, it could be the power saving settings for the wireless adapter. Check it in Control Panel>Device Manager, right click to expand network adapters, right click the wireless one and go to Properties then Power management.
If it's not that, it may be the channel it's set to receive on if that doesn't match the channel the router is broadcasting over.