From: Felix Fietkau Date: Sat, 18 Jan 2025 09:06:44 +0000 (+0100) Subject: wifi-scripts: add a few missing auth_type checks in ucode X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7482296ebf73d3c9b7f40e2f37670d337137598f;p=openwrt%2Fstaging%2Fjow.git 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 --- 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; }