I call
wpa_supplicant -c"$CONF" -i"$IFACE" -B
where $CONF is a file with many network={}
definitions. wpa_supplicant
does connect to any one of those in range.
How can I query with which AP is my laptop associated?
I tried adding -dd
and parsing the output. What I found is:
Priority group 1
id=3 ssid='UP-Campus'
Priority group 0
id=0 ssid='Sauron'
id=1 ssid='futurenet'
Can I rely on this, that wpa_supplicant
fill surely connect to 'UP-Campus'.
And another question, does wpa_supplicant
reconnect? If I walk out of the range of one of the cells in the config file and walk into the range of another, will it reconnect?
wpa_cli
. The man page is outdated,wpa_cli help
will list all commands. Yes,wpa_supplicant
will reconnect if configured properly. Yes, it will respect priorities. It will also connect to lower priorities if higher priorities are not available...