ieee8021xclient: add outer EAP method option

Some authentication servers require a specific outer EAP method and do
not negotiate one. Expose the wpa_supplicant "eap" parameter as a
protocol option so it can be set from UCI.

Signed-off-by: Zhao Kunyu <839438904@qq.com>
This commit is contained in:
Zhao Kunyu authored and Hannu Nyman committed 2026-11-22 18:15:55 +02:00
1 parent 8995b6ed71
commit 90e13dc38b
1 file changed
+4 -1
+4 -1
View File
@@ -38,12 +38,13 @@ proto_ieee8021xclient_setup() {
local identity anonymous_identity password
local ca_cert client_cert private_key private_key_passwd dh_file subject_match
local phase1 phase2 ca_cert2 client_cert2 private_key2 private_key_passwd2 dh_file2 subject_match2
local eap
local eap_workaround
json_get_vars eapol_version
json_get_vars identity anonymous_identity password
json_get_vars ca_cert client_cert private_key private_key_passwd dh_file subject_match
json_get_vars phase1 phase2 ca_cert2 client_cert2 private_key2 private_key_passwd2 dh_file2 subject_match2
json_get_vars eap_workaround
json_get_vars eap eap_workaround
# launch
local _config _pid
@@ -52,6 +53,7 @@ proto_ieee8021xclient_setup() {
cat > "${_config}" << EOF
${eapol_version:+eapol_version=${eapol_version}}
network={
${eap:+eap=${eap}}
${identity:+identity=${identity}}
${anonymous_identity:+anonymous_identity=${anonymous_identity}}
${password:+password=${password}}
@@ -129,6 +131,7 @@ proto_ieee8021xclient_init_config() {
proto_config_add_string private_key_passwd2
proto_config_add_string 'dh_file2:file'
proto_config_add_string subject_match2
proto_config_add_string eap
proto_config_add_boolean eap_workaround
}