My old wpa_supplicant and interfaces config not work!
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="MySSID"
psk="topsecret"
key_mgmt=WPA-PSK
}
/etc/network/interfaces
iface lo inet loopback
iface eth0 inet manual
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
I tried enable interface or restart with this command but:
sudo ifup --force wlan0
output message:
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 bring up wlan0.
But, I fixed this overriding supplicant config on interfaces:
auto lo
iface lo inet loopback
iface eth0 inet manual
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "MySSID"
wpa-psk "topsecret"
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Any idea? thanks
System:
Linux raspberrypi 4.1.19-v7+ #858 SMP
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie
Bus 001 Device 004: ID 0bda:8176 Realtek RTL8188CUS
sudo wpa_cli reconfigure
, then reboot – Tes3awy Mar 23 '17 at 18:03