Skip to content

Instantly share code, notes, and snippets.

@ahmetozer
Created May 27, 2024 21:44
Show Gist options
  • Save ahmetozer/e36890daade857a93117d47ff67c46f0 to your computer and use it in GitHub Desktop.
Save ahmetozer/e36890daade857a93117d47ff67c46f0 to your computer and use it in GitHub Desktop.
Raspberry PI 5 Wifi connection WPA supplicant example

Raspberry PI 5 wifi not connected with wpa_supplicant

My previous psk files are work on Raspberry pi 4, raspberry zero but at Raspberry pi 5, it is not work. For my preference, I do not use networ-manager instead I use ifupdown for managing network interfaces. While using, I face an error and after couple of configuration changes, i notice that it is realted to key_mgmt property.

WPA_SUPPLICANT error

To fix connection error, place key_mgmt=WPA-PSK-SHA256 inside your configuration

wlan0: CTRL-EVENT-DSCP-POLICY clear_all
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=US
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='ahmet.network' freq=2417 MHz)
wlan0: Authentication with xx:xx:xx:xx:xx:xx timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx  reason=3 locally_generated=1
BSSID xx:xx:xx:xx:xx:xx  ignore list count incremented to 2, ignoring for 10 seconds

Keyworks

  • Raspberry pi 5 not work with wpa_supplicant
  • Using ifupdown with raspberry pi 5
  • raspberry pi 5 not conencting to wifi
#ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
#update_config=1
ap_scan=1
fast_reauth=0
country=US
network={
ssid="ahmet.network"
psk=<YOUR_PSK>
key_mgmt=WPA-PSK-SHA256
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment