I know this is an old thread but it was the most relevant one.
I have basically the same issue. Won’t connect to WiFi
It is however creating it’s own access point.
First odd thing is if I run the raspi-config, and try to edit the wifi settings, it says “Could not communicate with wpa_supplicant”
If I run wpa_supplicant manually
sudo wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -d -iwlan0 | tee ./wifi.log
This will run with a bunch of logging and the “tee” splits the console output to a log file and the console
First I must say I changed the credentials in wpa_supplicant.conf to match my hotspot instead of using the default as I have other devices that connect and don’t want to have to change all those.
When I run the command, I see in the log it finds and recognizes the SSID,
I see it going from DISCONNECTED → SCANNING → ASSOCIATING… and it looks like its going to work, but then there’s a line
wlan0: Event ASSOC_REJECT (12) received
and a few lines later I it goes from ASSOCIATING → DISCONNECTED
My install was from when I first got my unit a while ago, so after messing with it for 12 hours (literally), I went scorched earth and reflashed the latest image… and …it does exactly the same thing. Can’t access the wifi config, and it creates a hotspot.
I would assume that if the default image does this there should be instructions on how to switch it to use a hotspot, but the getting started instructions seem to assume that it does that automatically.
After the reflash, I did indeed try with my hotspot credentials set as specified in the setup guide and did not get a connection.
I suppose maybe it is possible there is some different between a RP4 and a CM4 which is what I am using?. I don’t have a spare RP4…