[openwrt/openwrt] wifi-scripts: add a few missing auth_type checks in ucode

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 18 01:36:41 PST 2025


nbd pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7482296ebf73d3c9b7f40e2f37670d337137598f

commit 7482296ebf73d3c9b7f40e2f37670d337137598f
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Sat Jan 18 10:06:44 2025 +0100

    wifi-scripts: add a few missing auth_type checks in ucode
    
    Add some missing documented or commonly used values
    
    Fixes: https://github.com/openwrt/openwrt/issues/17431
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 .../wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc     | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
index ed9b2625bb..710ded10e5 100644
--- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
+++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc
@@ -71,12 +71,22 @@ export function parse_encryption(config) {
 		config.auth_type = 'eap2';
 		break;
 
+	case 'psk-mixed':
+		config.auth_type = "psk";
+		break;
+
+	case 'psk3':
+		config.auth_type = 'sae';
+		break;
+
+	case 'psk3-mixed':
 	case 'sae-mixed':
 		config.auth_type = 'psk-sae';
 		break;
 
 	case 'wpa':
 	case 'wpa2':
+	case 'wpa-mixed':
 		config.auth_type = 'eap';
 		break;
 	}




More information about the lede-commits mailing list