This is a deprecated protocol and not secure.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# 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
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
(
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 ]