From: Rany Hany Date: Sun, 23 Nov 2025 23:21:29 +0000 (+0000) Subject: wifi-scripts: ucode: add missing config.auth_type assignment for psk2 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=7ea659503aba6611bd4d660a4adec256ca53385f;p=openwrt%2Fstaging%2Fstintel.git wifi-scripts: ucode: add missing config.auth_type assignment for psk2 This ends up breaking wifi-station and wifi-vlan as it depends on config.auth_type being either psk or psk-sae. When set to psk2, this would be unset causing that feature to not work. See discussion in https://github.com/openwrt/openwrt/issues/20705#issuecomment-3568446006 Signed-off-by: Rany Hany Link: https://github.com/openwrt/openwrt/pull/20914 Signed-off-by: Hauke Mehrtens --- 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 916305e183..dae22abd9d 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 @@ -41,8 +41,9 @@ export function parse_encryption(config, dev_config) { break; case 'psk': + case 'psk2': case 'psk-mixed': - config.auth_type = "psk"; + config.auth_type = 'psk'; wpa3_pairwise = null; break; @@ -63,10 +64,6 @@ export function parse_encryption(config, dev_config) { wpa3_pairwise = null; break; - case 'psk2': - wpa3_pairwise = null; - break; - default: config.wpa_pairwise = null; wpa3_pairwise = null;