Where to change agressivness of switching to different Wifi endpoint?

In my place there are 2 WiFi networks with different names, but I noticed laptop has problem with switching between them - even if I’m very close to one with strongest signal, it will not switch, and keep the other one with weak signal. How I can change settings of autoswitch - how often Endevour scans networks, and tis there a way to change singal hresholds for auto switching?

OK, found some info here, in roaming section: https://wiki.archlinux.org/title/Wpa_supplicant , but looks like it applies only to AP in same SSID