My wireless network can be flaky at times, probably thanks to interference from other networks and devices. If you have an unreliable wireless connection, it could be because you’re not on the optimal wireless channel for your router and environment. Did you know that your Mac has a built-in tool to find the best wireless channel? The trick involves using the Wireless Diagnostics Utilities app that comes with your Mac.
Check out the write up at OS X Daily for step by step instructions on how to find the best wireless channel. I have to admit that I have to read the instructions every time that I do this, because the Wi-Fi Scan tab is not easy to find.