Wifi change stays not fixed

Chris

New member
Hi all,

I hope you can help.

I have a WiFi network with an range extender. My router and extender have their own SSID. Let's name them WifiRouter en WifiExtender for now. I prefer to be connected to WifiRouter, but occasionally I do connected with WifiExtender.

So I made a macro that changes from WifiExtender to WifiRouter. This macro works, but unfortunately after being connected to WifiRouter for a second, my device switches back to WifiExtender.

Only if I change to a WiFi network manually, it keeps connected.

I tried all sorts of things to do it with a macro, also with enabling and disabling WiFi, but no luck.

Anyone an idea?

(Android 9, latest version of MD, ADB hack)
 

dhj49er

Well-known member
Do you have auto connect set in the WiFi settings for either of the WiFi networks? If so try disabling this setting.
 

Chris

New member
Dear dhj49er,

Thank for the reply. Indeed both networks where checked for automatic connect. This would ensure that when only WifiExtender is available, it connects to that network. The idea was that when both networks are available, it priotizes WifiRouter.

Regards Chris
 

dhj49er

Well-known member
Dear dhj49er,

Thank for the reply. Indeed both networks where checked for automatic connect. This would ensure that when only WifiExtender is available, it connects to that network. The idea was that when both networks are available, it priotizes WifiRouter.

Regards Chris
I thought that would be the case.
I assume the OS is changing the WiFi connection back and not Macrodroid.
I had a similar use case a few years ago and developed a similar macro. I setup my home router with different ssids for 5ghz and 2.4ghz. I prefer my phone to connect to 5ghz, but the phone would occasionally connect to 2.4ghz first. The macro would disconnect from the 2.4ghz and connect to 5ghz. From memory it worked ok.
Now I don't need the macro - the phone cannot connect to the 2.4ghz only the 5ghz. That's because the phone's WiFi sensitivity has improved over the last few years and the phone sees the 5ghz wherever I am in the house.
I apologise as the above probably doesn't help you.
Unfortunately, Android has also changed and it could be that the OS is forcing the change. There might be a system setting.
If all else fails it might be worth looking at using WiFi signal strength magic text to select the strongest of the 2 ssids....but if the OS is forcing the change it probably won't be any better.
 

Chris

New member
Dear dhj49er,

Thanks a lot for your detailed explanation. I indeed think this is behaviour of the OS, it seems not much MD can do about that.

I puzzle with it a bit more, maybe I find a an alternative.

Thanks!
 

MacroDroidDev

Administrator
Staff member
Yes @dhj49er is correct. The operating system is deciding to change the connection over, presumably because it decides it's the best available connection. MacroDroid will swap the wifi connection over but as you can see there is nothing to stop Android doing it's thing and changing it back when it decides to.

I'm not aware of any way around this but if there is some solution I'm sure there will be some specialist app on the Play Store for this.
 
Top