My Mac keeps disconnecting from the wifi.
Your laptop is trying to connect to a wireless access point that is not giving the strongest signal.