I do know the BSSID and passphrase of my wireless router and I want to connect my wireless interface to it without caring about the SSID. Thus, I do want it to work even after the SSID of the wireless router has been modified.
What I have tried to achieve this is to alter my /etc/network/interfaces:
iface wlan0 inet dhcp
#wpa-ssid "MySSID" # old line
wpa-bssid 01:23:45:67:89:ab # new line
wpa-psk "MYPASSWORD"
But using this configuration the system stays offline. I think the ssid is mandatory for wpa_supplicant but I don't understand why. Is there any technical reason? How to bypass this?