Hello,
I was experiencing the same problem, and both of these workarounds did not work for me.
However!
Even though I am quite inexperienced when it comes to these kinds of problems, I managed to get it working reliably again with the help of my favourite LLM-slop-machine.
Made the file: /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ctrl_interface=/run/wpa_supplicant
update_config=1
network={
ssid="YourSSID"
psk="YourPassword"
key_mgmt=WPA-PSK
}
ran these commands:
sudo systemctl enable wpa_supplicant@wlan0.service
sudo systemctl restart wpa_supplicant@wlan0.service
sudo systemctl restart systemd-networkd
then this one:
sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf -D nl80211 -d
got this error from that: nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
then these commands:
sudo systemctl stop wpa_supplicant@wlan0.service
sudo systemctl stop wpa_supplicant.service
sudo pkill -9 wpa_supplicant || true
sudo rm -f /run/wpa_supplicant/*
then started the service again and watching logs:
sudo systemctl start wpa_supplicant@wlan0.service
sudo journalctl -u wpa_supplicant@wlan0 -f
From there i saw "wlan0: Associated with" and "wlan0: WPA: Key negotiation completed"
however when running
ip addr show wlan0
It only showed me 2 lines and no IP. Checked that I was connected to the correct access point with:
iw dev wlan0 link
I installed dhcpcd5 to assign an IP.
sudo apt install dhcpcd5
assigning IP and checking if it was assigned:
sudo dhcpcd wlan0
ip addr show wlan0
Then also after restarting everything worked well for me.
From the wpa error, it looks like there were 2 instances? I am not sure.
I would love to hear someone elses opinion on this, since I am not 100% sure what exactly I did, but it worked.
I hope this helps someone!