From 90e13dc38b7a5bb32d9f89ac9ef28db0c319e122 Mon Sep 17 00:00:00 2001 From: Zhao Kunyu <839438904@qq.com> Date: Fri, 30 Oct 2026 14:44:57 +0800 Subject: [PATCH] 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> --- net/ieee8021xclient/files/ieee8021xclient.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/ieee8021xclient/files/ieee8021xclient.sh b/net/ieee8021xclient/files/ieee8021xclient.sh index ed903aed7e..bf6f041994 100755 --- a/net/ieee8021xclient/files/ieee8021xclient.sh +++ b/net/ieee8021xclient/files/ieee8021xclient.sh @@ -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 }