build_hidden_probe_list (together with get_best_connection) is called to
find additional hidden APs, by looking at the SSIDs of our connections
and explicitly scanning for those.
It is only relevant, if you have an hidden AP, so that it shows up as an
available Wifi network in the scan list.
NM includes there all Networks it sees (including the hidden ones that
it can find after scanning build_hidden_probe_list. No top-5 restriction
-- where did you see that?).
- When it tries to autoconnect, it will search for a suitable,
connection. This is not strictly the same as the "available connections"
above, but similar.
Currently that means: find connections that:
- are autoconnect=yes
- are not yet connected on an other interface
- matches the device. E.g. if specified, it requires matching
interface-name, BSSID, SSID, MAC address, etc.
- connection is not "blocked" for the device (because of recent
failures to connect or because you just got disconnected with
`nmcli con down`).
If more then one connection match, it will reconnect to the
least-recently-connected (according to the timestamp).
So yes, it's conceivable to have more policies when selecting the
connection. The least-recently-policy sounds like a good idea in
general.