summaryrefslogtreecommitdiffstats
path: root/src/connections/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/wireless')
-rw-r--r--src/connections/wireless3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index 8707ed8..e7e2472 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -38,6 +38,9 @@ wireless_up() {
# Manually set iwconfig options
[[ "$IWCONFIG" ]] && iwconfig $INTERFACE $IWCONFIG
+ # Set to 'none' if not set
+ [[ -z "$SECURITY" ]] && SECURITY="none"
+
case $SECURITY in
wep|none)
# 'none' uses iwconfig like wep. Use sane default if WEP_OPTS=""