当我运行以下conf(所有样板)时,
eapol_version=1
ap_scan=0
fast_reauth=1
network={
ca_cert="/etc/config/auth/CA_XXXX.pem"
client_cert="/etc/config/auth/Client_XXXX.pem"
eap=TLS
eapol_flags=0
identity="XX:XX:XX:XX:XX:XX" # Internet (ONT) interface MAC address must match this value
key_mgmt=IEEE8021X
phase1="allow_canned_success=1"
private_key="/etc/config/auth/PrivateKey_XXXX.pem"
}
我收到以下错误,
root@router:/etc/config# /usr/sbin/wpa_supplicant -D wired -i "10g-2" -dd -c /tmp/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Line 5: unknown network field 'ca_cert'.
Line 6: unknown network field 'client_cert'.
Line 7: unknown network field 'eap'.
Line 8: unknown network field 'eapol_flags'.
Line 9: unknown network field 'identity'.
Line 11: unknown network field 'phase1'.
Line 12: unknown network field 'private_key'.
Line 13: failed to parse network block.
Failed to read or parse configuration '/tmp/wpa_supplicant.conf'.
: CTRL-EVENT-DSCP-POLICY clear_all
请注意,在 OpenWRT 之外运行相同的文件工作正常,在 Debian 上使用 wpa_supplicant v2.10 进行了测试。但是在 OpenWRT 附带的 wpa_supplicant (v2.11-devel) 版本 23.05.2 上我遇到了失败。为什么 OpenWRT 版本的 wpa_supplicant 不支持网络块,如何解决这个问题?
wpad-basic
(默认)归咎于我有
wpad-basic
不支持EAP。我通过将其切换出来解决了这个问题
wpad-wolfssl
更新:我发现
wpad-wolfssl
也行不通,不得不搬到wpad-openssl