]> git.ipfire.org Git - people/ms/network.git/commitdiff
wireless: Drop support for WEP
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 15:51:55 +0000 (17:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 15:51:55 +0000 (17:51 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.wireless
src/functions/functions.wireless-networks

index d12efc65d7eb1838ab249cf4dcd48032c924f2d5..9c3ebd0169ddd05e665cab25830e256c3eeca43c 100644 (file)
@@ -27,7 +27,7 @@ WIRELESS_REGULATORY_DOMAIN_DATABASE="/usr/lib/crda/regulatory.bin"
 
 WIRELESS_DEFAULT_ENCRYPTION_MODE="NONE"
 WIRELESS_VALID_ENCRYPTION_MODES="WPA2-PSK-SHA256 WPA2-PSK \
-       WPA-PSK-SHA256 WPA-PSK WEP NONE"
+       WPA-PSK-SHA256 WPA-PSK NONE"
 
 cli_wireless() {
        local action=${1}
index 0aea96c47fa80210ecac5e2a9ca1287ca5e3ac93..9835289cdf9933c1f8ae0fd1fab9f81c1dc0d863 100644 (file)
@@ -388,16 +388,6 @@ wireless_network_to_wpa_supplicant() {
                        group="CCMP TKIP WEP104 WEP40"
                        ;;
 
-               # WEP
-               WEP)
-                       auth_alg="SHARED"
-                       wep_key0="${key}"
-                       wep_tx_keyidx="0"
-
-                       # Reset PSK.
-                       psk=""
-                       ;;
-
                # No encryption. DANGEROUS!
                NONE)
                        auth_alg="OPEN"
@@ -427,10 +417,6 @@ wireless_network_to_wpa_supplicant() {
                WPA*PSK)
                        print_indent 1 "psk=\"${PSK}\""
                        ;;
-               WEP)
-                       print_indent 1 "wep_key0=\"${PSK}\""
-                       print_indent 1 "wep_tx_keyidx=0"
-                       ;;
        esac
 
        if isset EAP_MODES; then