From: Leon M. Busch-George Date: Thu, 18 Dec 2025 21:24:51 +0000 (+0100) Subject: wifi-scripts: don't set wpa_pairwise for wpa=0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc4e7fd38ee1925c3cec8c2fe4730f334ca6be1e;p=thirdparty%2Fopenwrt.git wifi-scripts: don't set wpa_pairwise for wpa=0 Without this patch, the if (!config.wpa) config.wpa_pairwise = null; is overwritten immediately. Signed-off-by: Leon M. Busch-George Link: https://github.com/openwrt/openwrt/pull/21215 Signed-off-by: Robert Marko --- 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 942fef059a4..5b7b14b6ff8 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 @@ -16,10 +16,11 @@ export function parse_encryption(config, dev_config) { config.wpa = v; break; } - if (!config.wpa) - config.wpa_pairwise = null; - config.wpa_pairwise = (config.hw_mode == 'ad') ? 'GCMP' : 'CCMP'; + config.wpa_pairwise = null; + if (config.wpa) + config.wpa_pairwise = (config.hw_mode == 'ad') ? 'GCMP' : 'CCMP'; + config.auth_type = encryption[0] ?? 'none'; let wpa3_pairwise = config.wpa_pairwise;