How to force macbook reconnect to best wifi after sleep

wifi

With Android 5.0 wifi hotspot no longer disables on inactivity. So I often stuck with a problem: I work at park with my macbook connected to android phone wifi, after some time a close macbook and go home, I open macbook – and it reconnects to phone wifi as "last used", not to my home network. Each time i forgot to disable hotspot on my phone I get huge bills for mobile internet :(. Is it any way to force macbook to connect "best" wifi after sleep, not the "last used one"?

"Don't remember networks" and "don't save passwords" doesn't help – it still connects to last wifi network used.

Where is no way I know to make android wifi turn off after inactivity, such option was removed in Android 5.0

I'm using Macbook 12" with latest OSX 10.11

Best Answer

Go into System Preferences-> Network. Select Wi-Fi and click "Advanced" change the order of preferred networks so that your home network is listed before your Android hotspot's.