luci-mod-network: demote WPA-PSK to "low" security in the choice list
authorJo-Philipp Wich <jo@mein.io>
Tue, 12 Jul 2022 14:12:30 +0000 (16:12 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 12 Jul 2022 14:12:30 +0000 (16:12 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 9e7bcdd17fb34eb606d91b3792ba9e6d57bbc8f7..2704ee474b9bd7ab4ab8cd402e80bc1d7b95d4f2 100644 (file)
@@ -1281,7 +1281,7 @@ return view.extend({
                                        if (has_hostapd || has_supplicant) {
                                                crypto_modes.push(['psk2',      'WPA2-PSK',                    35]);
                                                crypto_modes.push(['psk-mixed', 'WPA-PSK/WPA2-PSK Mixed Mode', 22]);
-                                               crypto_modes.push(['psk',       'WPA-PSK',                     21]);
+                                               crypto_modes.push(['psk',       'WPA-PSK',                     12]);
                                        }
                                        else {
                                                encr.description = _('WPA-Encryption requires wpa_supplicant (for client mode) or hostapd (for AP and ad-hoc mode) to be installed.');
@@ -1381,7 +1381,7 @@ return view.extend({
                                else if (hwtype == 'broadcom') {
                                        crypto_modes.push(['psk2',     'WPA2-PSK',                    33]);
                                        crypto_modes.push(['psk+psk2', 'WPA-PSK/WPA2-PSK Mixed Mode', 22]);
-                                       crypto_modes.push(['psk',      'WPA-PSK',                     21]);
+                                       crypto_modes.push(['psk',      'WPA-PSK',                     12]);
                                        crypto_modes.push(['wep-open',   _('WEP Open System'),        11]);
                                        crypto_modes.push(['wep-shared', _('WEP Shared Key'),         10]);
                                }