How to prevent wpa_supplicant from connecting to a network

view story

http://unix.stackexchange.com – How can I persistently prevent a wireless interface using wpa_supplicant in roaming mode from connecting to a particular open network foo? This doesn't work: $ sudo wpa_cli > blacklist 00:11:22:33:44:55 FAIL Nor does the following: /etc/network/interfaces: allow-hotplug wlan0 iface wlan0 inet manual wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf wpa_supplicant.conf: network={ ssid="foo" key_mgmt=NONE priority=0 } (HowTos)