From 66fdbcaf15d3fb7ce4a1e0f7e6299818f4638c84 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 30 Mar 2019 15:02:34 +0100 Subject: [PATCH 1/1] wireless-ap: Remove support for WPA This is a deprecated protocol and not secure. Signed-off-by: Michael Tremer --- src/functions/functions.hostapd | 8 +------- src/hooks/ports/wireless-ap | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/functions/functions.hostapd b/src/functions/functions.hostapd index 79fb4dbb..d3eaa744 100644 --- a/src/functions/functions.hostapd +++ b/src/functions/functions.hostapd @@ -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 ( diff --git a/src/hooks/ports/wireless-ap b/src/hooks/ports/wireless-ap index e393f5f7..a964fac8 100644 --- a/src/hooks/ports/wireless-ap +++ b/src/hooks/ports/wireless-ap @@ -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 ] -- 2.39.2