[openwrt/openwrt] wifi-scripts: don't set wpa_pairwise for wpa=0
LEDE Commits
lede-commits at lists.infradead.org
Tue Dec 30 01:40:20 PST 2025
robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/ff713d3d9e39d148e60cc411b47d4f88b204ae30
commit ff713d3d9e39d148e60cc411b47d4f88b204ae30
Author: Leon M. Busch-George <leon at georgemail.eu>
AuthorDate: Thu Dec 18 22:24:51 2025 +0100
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 <leon at georgemail.eu>
Link: https://github.com/openwrt/openwrt/pull/21215
Signed-off-by: Robert Marko <robimarko at gmail.com>
(cherry picked from commit bc4e7fd38ee1925c3cec8c2fe4730f334ca6be1e)
---
.../config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
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 942fef059a..5b7b14b6ff 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;
More information about the lede-commits
mailing list