]> git.ipfire.org Git - people/stevee/network.git/commitdiff
wireless-ap: Remove support for WPA
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Mar 2019 14:02:34 +0000 (15:02 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Mar 2019 14:02:56 +0000 (15:02 +0100)
This is a deprecated protocol and not secure.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.hostapd
src/hooks/ports/wireless-ap

index 79fb4dbb38f9c6e7d08d5cc6d9927cf6684c1a38..d3eaa744a0288ba60f04c9cff6093a452dc8617f 100644 (file)
@@ -138,7 +138,7 @@ hostapd_config_write() {
 
        # Check if key is set when encryption is used.
        if isset encryption; then
-               assert isoneof encryption WPA WPA2 WPA/WPA2
+               assert isoneof encryption WPA2
                assert isset key
        fi
 
@@ -398,15 +398,9 @@ hostapd_config_write() {
        if isset encryption; then
                local encryption_mode=0
                case "${encryption}" in
-                       WPA)
-                               encryption_mode=1
-                               ;;
                        WPA2)
                                encryption_mode=2
                                ;;
-                       WPA/WPA2)
-                               encryption_mode=3
-                               ;;
                esac
 
                (
index e393f5f763959f256ad5d985a033ad841b790f01..a964fac843b3b725a0f000084158d9b2ea7801d8 100644 (file)
@@ -65,7 +65,7 @@ hook_check_settings() {
        assert isset SSID
 
        if isset ENCRYPTION; then
-               assert isoneof ENCRYPTION WPA WPA2 WPA/WPA2
+               assert isoneof ENCRYPTION WPA2
 
                assert isset KEY
                assert [ ${#KEY} -ge 8 ]