]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.hostapd
wireless-ap: Remove support for WPA
[people/ms/network.git] / src / functions / functions.hostapd
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
 
                (