summaryrefslogtreecommitdiffstats
path: root/src/8021x
diff options
context:
space:
mode:
Diffstat (limited to 'src/8021x')
-rw-r--r--src/8021x9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/8021x b/src/8021x
index 704b023..27e674d 100644
--- a/src/8021x
+++ b/src/8021x
@@ -47,10 +47,10 @@ stop_wpa()
fi
}
-# $1 is profile
-make_wpa_config() {
- local WPA_CONF="${TMPDIR:-/tmp}/wpa.${1// /}" # substitute spaces out
-
+# $1 is interface
+make_wpa_config() {
+ local WPA_CONF="${TMPDIR:-/tmp}/wpa.${INTERFACE}" # substitute spaces out
+
# make empty tmp dir with correct permissions, rename it
rm -rf "$WPA_CONF"
mv -f "$(mktemp -d)" "$WPA_CONF" || return 1
@@ -61,3 +61,4 @@ make_wpa_config() {
}
# vim: ft=sh ts=4 et sw=4:
+