Rasberry pi Failed to connect to wpa_supplicant - wpa_ctrl_open: no such file or directory
I'm trying to allow my Pi to connect to a public Wi-Fi network without a password, but I can't get the wpa_supplicant.conf file. Here's the file:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
# Public network
network={
ssid="PublicSSID"
key_mgmt=None
}
When I try to connect I get this error:
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1
I can connect to my home networks and others that have passwords. Any ideas what is going wrong?
Btw, I connect like this: (wifi wlan1):
$ sudo ifdown wlan1
$ sleep 5
$ sudo ifup wlan1
+3
source to share