benparsons
Posts: 2
Joined: Mon Nov 19, 2018 3:38 pm

RPi4 won't connect to wifi

Sun Jun 07, 2020 10:32 am

I have a problem very similar to viewtopic.php?t=245067, but I can't find a solution.

The dropdown shows my SSID present and with good signal, but clicking it does nothing, gives no feedback.

My wpa_supplicant.conf:

Code: Select all

pi@blueboi:~ $ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
	ssid="SKY151A6"
	psk="(correct key)"
	key_mgmt=WPA-PSK
}
I've tried removing the key_mgmt field.

wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf output:

Code: Select all

pi@blueboi:~ $ sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Trying to associate with 70:50:af:1e:34:7d (SSID='SKY151A6' freq=2412 MHz)
Failed to add supported operating classes IE
wlan0: Authentication with 70:50:af:1e:34:7d timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=70:50:af:1e:34:7d reason=3 locally_generated=1
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Trying to associate with 70:50:af:1e:34:7d (SSID='SKY151A6' freq=2412 MHz)
Failed to add supported operating classes IE
wlan0: Authentication with 70:50:af:1e:34:7d timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=70:50:af:1e:34:7d reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="SKY151A6" auth_failures=1 duration=10 reason=CONN_FAILED
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
^Cwlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="SKY151A6"
wlan0: Trying to associate with 70:50:af:1e:34:7d (SSID='SKY151A6' freq=2412 MHz)
Failed to add supported operating classes IE
^Cwlan0: CTRL-EVENT-DISCONNECTED bssid=70:50:af:1e:34:7d reason=3 locally_generated=1
wlan0: CTRL-EVENT-TERMINATING 
I have noticed that sometimes, after shutting down and restarting, the Pi will connect, but there seems to be no pattern to this.

Can anyone suggest how to debug the problem or what to try next?

pidd
Posts: 724
Joined: Fri May 29, 2020 8:29 pm
Location: Birkenhead, Wirral, UK
Contact: Website

Re: RPi4 won't connect to wifi

Sun Jun 07, 2020 10:46 am

Have you tried putting it right next to the router, I've had interference problems even when it was 2 feet away.

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: RPi4 won't connect to wifi

Sun Jun 07, 2020 12:22 pm

Try rebooting the router.

I've encountered routers that work fine with existing clients, show in the list of SSIDs, and appear to go through the connection process but always fail to authenticate new clients. A reboot fixed that.
Arguing with strangers on the internet since 1993.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi4 won't connect to wifi

Sun Jun 07, 2020 12:29 pm

Are the SSIDs for 5GHz and 2.4GHz the same on your router?

On my network with 2.4GHz SSID=Example my 5GHz is set up with SSID=Example-5G so that I can be certain who's using the 5GHz piece.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
thagrol
Posts: 3178
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: RPi4 won't connect to wifi

Sun Jun 07, 2020 1:28 pm

I should add, one of the questionable router I mentioned above was supplied by Sky.
Arguing with strangers on the internet since 1993.

epoch1970
Posts: 5203
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: RPi4 won't connect to wifi

Sun Jun 07, 2020 1:50 pm

benparsons wrote:
Sun Jun 07, 2020 10:32 am
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf output:

Code: Select all

pi@blueboi:~ $ sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWSCAN]: Device or resource busy
Remove the "-Dwext" argument from your command-line.
That is not the appropriate driver for brcmfmac.
The appropriate driver nl80211 is selected by default by wpa_supplicant.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Troubleshooting”