Mikrotik as WiFi client should switch to another access point (same SSID) in case of uplink failure (mesh uplink)

Hello,
Is there a script that switches to an alternative access point in the event of an uplink failure (data connection at the access point fails)?

The SSID and password remain the same.

I did some quick Tests in my LAB with the latest 7.18
Found an “easy” Solution, if the Frenquency-Parameter of the AP`s are Unique

For Exemple
AP1= 2437
AP2= 2462

If that is the Case, a Script on the WIFI-Client could simply change the Channel-Profile from AP1 to AP2 and/or vise-versa


Maybe , someone has a better idea ?