On this page Apple says the following:
SSID (Service Set Identifier—Wi-Fi network name)
The SSID, or network name, identifies your Wi-Fi network to users and other Wi-Fi devices. It is case sensitive.
Set to: Any unique name.
Details: Choose a name that's unique to your network and isn't shared by other nearby networks or other networks you are likely to encounter. If your router came with a default SSID (network name), it's especially important that you change it to a different, unique name. Some common default SSID names to avoid are "linksys", "netgear", "NETGEAR", "dlink", "wireless", "2wire", and "default".
If your SSID isn't unique, Wi-Fi devices will have trouble identifying your network. This could cause them to fail to automatically connect to your network, or to connect to other networks sharing the same SSID. Also, it might prevent Wi-Fi devices from using all routers in your network (if you have more than one Wi-Fi router), or prevent them from using all available bands (if you have a dual-band Wi-Fi router).
I've been always wondering if this could be the case in real life?
Are WiFi devices connecting to the remembered access points using their SSID, or BSSID?
To avoid the security hole that is pointed out by Apple, where someone puts WiFi honeypots named
linksys to mass-grab the passwords, (taking advantage of devices whose owners have devices that will try to auto-connect to such a network), I'd imagine the devices should connect to a BSSID, and the SSID would be only displayed to the user to have friendly UX.
But maybe I'm wrong and the devices really do connect by SSID?