MacOS – Prevent from switching Wi-Fi networks

macoswifi

I have two wifi access points at home: "downstairs" and "upstairs". They're both WPA2.

If I'm upstairs and connected to "upstairs" and my laptop goes to sleep, when I reactivate it, it connects to "downstairs" as it is higher in the list, but the signal is too low and I have to switch it manually to "upstairs". How can I prevent that?

Remark: I don't want "upstairs" or "downstairs" to have priority: it depends on where I stand in the house. I just want OSX to stick with the network I have selected, whichever it is. I don't want to re-type the lengthy password all the time neither ("forget network" is probably not the way to go).

Script or third-party program welcome…

OS X 10.10

EDIT I originally wrote I wanted to stick to current network, as opposed to switching to another weaker network. But if all APs have the same name and password, then the seamless switch is ok to me. See this answer and this advise:

"(…) let the client devices each decide which is best to use" –
"Make all the Wi-Fi networks in your home the same. Your life will be
better for it."

Best Answer

I also have two wifi access points at my home, and have found out the best way for OS X to switch between both automatically and choose the one with the best signal is to name both access points with exactly the same name with the same passwords so OS X sees them as identical. Works great with my AirPort Extreme (downstairs) and Time Machine (upstairs) which extends the downstairs wifi.