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 <j...@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


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to