1
1
Files
zyxel-vmg8825_b50b-cfw/package/network/config/netifd/patches-2015-12-16/006-Fix-8021x-authentication.patch
T
2026-04-17 18:33:03 +02:00

30 lines
715 B
Diff
Executable File

diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh
index 659284b..cf5b266 100644
--- a/scripts/netifd-wireless.sh
+++ b/scripts/netifd-wireless.sh
@@ -195,6 +195,8 @@ wireless_vif_parse_encryption() {
auth_type=none
wpa=0
wpa_pairwise=
+ eapol_key_index_workaround=0
+
case "$encryption" in
*tkip+aes|*tkip+ccmp|*aes+tkip|*ccmp+tkip) wpa_pairwise="CCMP TKIP";;
*aes|*ccmp| psk2 | wpa2) wpa_pairwise="CCMP";;
@@ -240,8 +242,14 @@ wireless_vif_parse_encryption() {
*psk*)
auth_type=psk
;;
- *wpa*|*8021x*)
+ *wpa*)
+ auth_type=eap
+ eapol_key_index_workaround=1
+ ;;
+ *8021x*)
auth_type=eap
+ eapol_version=2
+ eap_server=0
;;
*wep*)
auth_type=wep