[PATCH] netifd: fix wpa enterprise mode

John Crispin john at phrozen.org
Mon Oct 11 05:16:36 PDT 2021


Currently netifd only knows 2 wpa3/eap modes, wpa3 and wpa3-mixed.
Accoring to the spec there are however 3 mode, wpa3, wpa3-192 and wpa3-mixed.
In addition the mode currently called "incorrectly" setups up wpa3-192 and there
is no wpa3(-only) mode.

Fix the handler script s.T. hostap.sh can then properly setup wpa3/eap.

Tested-on: iPhone 12, Samsung S10/S20
Signed-off-by: John Crispin <john at phrozen.org>
---
 scripts/netifd-wireless.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh
index 80fbf75..0ee95d9 100644
--- a/scripts/netifd-wireless.sh
+++ b/scripts/netifd-wireless.sh
@@ -252,11 +252,14 @@ wireless_vif_parse_encryption() {
 			auth_type=owe
 		;;
 		wpa3-mixed*)
-			auth_type=eap-eap192
+			auth_type=eap-eap256
 		;;
-		wpa3*)
+		wpa3-192*)
 			auth_type=eap192
 		;;
+		wpa3*)
+			auth_type=eap256
+		;;
 		psk3-mixed*|sae-mixed*)
 			auth_type=psk-sae
 		;;
-- 
2.25.1




More information about the openwrt-devel mailing list