Skip to content

Commit bc4e7fd

Browse files
yogo1212robimarko
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#21215 Signed-off-by: Robert Marko <[email protected]>
1 parent fb15ef4 commit bc4e7fd

File tree

1 file changed

+4
-3
lines changed
  • package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi

1 file changed

+4
-3
lines changed

package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/iface.uc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ export function parse_encryption(config, dev_config) {
1616
config.wpa = v;
1717
break;
1818
}
19-
if (!config.wpa)
20-
config.wpa_pairwise = null;
2119

22-
config.wpa_pairwise = (config.hw_mode == 'ad') ? 'GCMP' : 'CCMP';
20+
config.wpa_pairwise = null;
21+
if (config.wpa)
22+
config.wpa_pairwise = (config.hw_mode == 'ad') ? 'GCMP' : 'CCMP';
23+
2324
config.auth_type = encryption[0] ?? 'none';
2425

2526
let wpa3_pairwise = config.wpa_pairwise;

0 commit comments

Comments
 (0)