From 91059e68cd03c7788ebde7a8569c3faaaadc9c75 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Thu, 6 Oct 2016 11:06:14 -0700 Subject: [PATCH] auto-t: Add functions to hostapd_cli --- autotests/util/hostapd.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py index eac0985e..f8000411 100644 --- a/autotests/util/hostapd.py +++ b/autotests/util/hostapd.py @@ -6,3 +6,11 @@ class HostapdCLI: @staticmethod def wps_push_button(): os.system('hostapd_cli wps_pbc') + + @staticmethod + def deauthenticate(client_address): + os.system('hostapd_cli deauthenticate ' + client_address) + + @staticmethod + def kill_all(): + os.system('killall hostapd')