在 WPA3 SAE 模式下配置 wpa_spplicant 时出现错误

在 WPA3 SAE 模式下配置 wpa_spplicant 时出现错误

我按如下方式配置wpa_supplicant2.conf

ctrl_interface=/var/run/wpa_supplicant 
ctrl_interface_group=0
sae_pwe=2
sae_groups=19 20 21 24 25
update_config=1
network={
    ssid=req_SSID
    proto=RSN
    key_mgmt=SAE 
    sae_pwe=2 
    pairwise=CCMP
    group=CCMP 
    ieee80211w=2 
    psk=PSD 
}

但在运行时出现以下错误

Successfully initialized wpa_supplicant
Line 8: invalid key_mgmt 'SAE'
Line 8: no key_mgmt values configured.
Line 8: failed to parse key_mgmt 'SAE'.
Line 14: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant_wpa2.conf'.
: CTRL-EVENT-DSCP-POLICY clear_all

答案1

当你编译 wpa_supplicant-2.10 时,请确保设置 CONFIG_SAE=y:

wget https://w1.fi/releases/wpa_supplicant-2.10.tar.gz
tar -xvf wpa_supplicant-2.10.tar.gz
cd wpa_supplicant-2.10

cat > wpa_supplicant/.config << "EOF"
CONFIG_SAE=y
EOF

cd wpa_supplicant && make BINDIR=/usr/sbin LIBDIR=/usr/lib

相关内容