summaryrefslogtreecommitdiffstats
path: root/src/8021x
diff options
context:
space:
mode:
Diffstat (limited to 'src/8021x')
-rw-r--r--src/8021x10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/8021x b/src/8021x
index 8dbff29..75030e9 100644
--- a/src/8021x
+++ b/src/8021x
@@ -34,3 +34,13 @@ start_wpa()
return 1
fi
}
+
+stop_wpa()
+{
+ wpa_cli terminate &> /dev/null
+ if [[ -f /var/run/wpa_supplicant_$1.pid ]]; then
+ kill $(cat /var/run/wpa_supplicant_$1.pid) &>/dev/null &
+ fi
+}
+
+# vim: set ts=4 et sw=4 ft=sh: