I have been trying to setup a raspberry pi 0w to connect to my access point but I can't get it to connect. The first thing I did was to enable USB ethernet and make the ssh file so I can connect to it over SSH, I then used raspi-config to setup WiFi. After this, the RPi didn't have an IP under wlan0 as I expected. I then tried to use a wpa-supplicant file with my wifi password and SSID:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="SSID"
psk="pass"
key_mgmt=WPA-PSK
}
This didn't work after a reboot and using ifdown wlan0 && ifup wlan0
didn't work either. I then removed the usb ethernet config changes on the SD card but still had no luck. After adding them back in and then changing the indentation to 0 spaces, 4 spaces, 1 space and a tab it still didn't work. I honestly I have no idea what I'm doing wrong.
- SSID is correct
- Country is correct
- Password is correct
- Band is correct (2.4GHz)
- Line endings are correct
After reading this post: Raspi doesn't connect with wifi anymore. What am I doing wrong?
I followed the steps to manually start wpa_supplicant (sudo wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0
) and all I am getting is a status_code 16 error 4 times then an auth_faliures=1 error. I know for certain the password is correct. I really have no idea what to do next.
wpa_cli -i wlan0 scan
(wait a few seconds then)wpa_cli -i wlan0 scan_results
show networks? – FelixJN Jan 18 '21 at 14:35ip a; ip r
. – Milliways Jun 20 '21 at 07:21