I have a kinda strange WiFi issue. I just bought a WiFi USB adapter for my RPi2, and I can list the Wifi networks, but if I add the credentials to the wpa_supplicants file, it does not want to connect. Also if I do raspi-config, and want to edit the wifi settings there, it tells me, that it cannot communicate with the wpa_supplicant. Now I have read, that there are some driver issue with the WiFi adapter I am using, but some people seem to be using it without problems. The dongle is the TL-WN722N v2 EDIT: I now tried to access everything via the GUI. In the dialog I was told, there is no wireless interface installed.
EDIT 2: To answer a comment: I am on the newest release that comes with raspberry pi imager, Rasbian Buster. The wpa_supplicant.conf reads the following:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="correctWifiSSID"
psk="correctWifiPassword"
}
I actually tried multiple different versions of this file, including one time, where I already created the file befor firing up the pi, as I read, that having lan connected sometimes messes with the wifi. This is the output from the ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP group default qlen 1000
link/ether b8:27:eb:f4:ae:6f brd ff:ff:ff:ff:ff:ff
inet 192.168.178.53/24 brd 192.168.178.255 scope global dynamic noprefixroute
eth0
valid_lft 863628sec preferred_lft 755628sec
inet6 2002:5fd0:e3c6:0:29ac:d9de:cfdc:a73b/64 scope global dynamic mngtmpaddr
noprefixroute
valid_lft 7063sec preferred_lft 3463sec
inet6 fe80::2840:a29f:80a9:caa3/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN
group default qlen 1000
link/ether d0:37:45:19:4b:10 brd ff:ff:ff:ff:ff:ff
I should also probably mention, that I tried this with multiple installs. I also tried it after updating via raspi-config and directly with apt.
ip addr
andsudo cat /etc/wpa_supplicant/wpa_supplicant.conf
. Obscure your psk (password).