A record when I was worried that I could connect to the 2.4GHz network with Raspberry Pi 4 but not to the 5GHz network.
If you just write the SSID and PSK in wpa_supplicant.conf
, you will not be able to connect, and the error log will look like the following.
Successfully initialized wpa_supplicant
wlan0: Trying to associate with SSID 'Buffalo-A-1234'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:24:a5:**:**:** status_code=16
wlan0: Trying to associate with SSID 'Buffalo-A-1234'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:24:a5:**:**:** status_code=16
wlan0: Trying to associate with SSID 'Buffalo-A-1234'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:24:a5:**:**:** status_code=16
wlan0: Trying to associate with SSID 'Buffalo-A-1234'
wlan0: CTRL-EVENT-ASSOC-REJECT bssid=00:24:a5:**:**:** status_code=16
I wrote wpa_supplicant.conf
as follows and I was able to connect.
wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=JP
network={
ssid="Buffalo-A-1234"
key_mgmt=WPA-PSK WPA-PSK-SHA256
psk="********"
pairwise=CCMP
group=CCMP
proto=WPA2
ieee80211w=1
}
It seems that the reason why it was difficult to connect was that the encryption of the wireless AP that provides the 5GHz network was "WPA2-PSK / WPA3-SAE Mixed", and it seems that key_mgmt = WPA-PSK-SHA256
was essential. (Reference: wpa \ _ supplicant -ArchWiki).
Recommended Posts