Wpa_supplicant Roaming threshold

Hello,

How can I set the roaming threshold in wpa_supplicant configuration? Where can I find it?

I have to run some tests and I would like that my client Yun changes AP more frequently, as soon as it perceives that there is another one with a stronger signal level.

How can I do that?

Thanks.

It must be sufficient to add this:

bgscan="simple:120:-75:600"

but as I do that on /tmp/run/wpa_supplicant-wlan0.conf, after restarting the network, the line disappears leaving me with this:

ctrl_interface=/var/run/wpa_supplicant-wlan0

network={
	
	scan_ssid=1
	ssid="net"
	
	key_mgmt=WPA-PSK
	proto=WPA
	
	fixed_freq=1
	
	
	
	
	
	psk="xxxx"
	
	
}
opkg remove wpad-mini
opkg install wpa-supplicant
uci set wireless.@wifi-iface[0].bgscan='simple:120:-75:600'
uci commit

I don't think it is working, I'll try to explain.

The network I want to connect to is made of 4 APs. While walking in the room I'd like to be connected always to the strongest one but Arduino doesn't seem to have the same approach.

I tried to move around with my Android phone and the things are going perfectly, when I am closer to one of the four AP it connects to that one if stronger than the previous.
I guess it just scans more frequently and it has a kind of policy that the highest signal level the better and therefore it connects to that one every time it perceives it as best AP.

How can I have a similar approach on my Yun? Are there any parameters that I can change?

opkg update
opkg list |grep wpa-supplicant
wpa-supplicant - 20131120-1 - WPA Supplicant

https://w1.fi/releases.html

The Yun's wpa-supplicant version is 2.0 hw

The current wpa-supplicant version is 2.5 hw

Get further help:

Upstream OS forum:

User space application wpa_supplicant Mailing list:

https://dev.openwrt.org/browser/trunk/package/network/services/hostapd/Makefile?rev=48528

Last change on this file since 48528 was 48528, checked in by nbd, 2 days ago
hostapd: fix wpad-mesh and wpa-supplicant-mesh configuration issues

The openwrt has 2 days old fresh software.