]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Reset hostapd state with FLUSH between test cases
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 28 Nov 2013 13:50:47 +0000 (15:50 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jan 2014 20:08:13 +0000 (22:08 +0200)
This is similar to the FLUSH command for wpa_supplicant.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

tests/hwsim/hostapd.py
tests/hwsim/run-tests.py

index b282a9b7417cd4d9179fdaa8fcb15a1de78d0889..7b6aad56747824bf39a16bbe4472307e082b28f9 100644 (file)
@@ -46,6 +46,9 @@ class HostapdGlobal:
     def relog(self):
         self.ctrl.request("RELOG")
 
+    def flush(self):
+        self.ctrl.request("FLUSH")
+
 
 class Hostapd:
     def __init__(self, ifname):
index b953688497af684068f5dad95b6b9cbd6c5840cb..4ae987f8671539be7823b70025682151ecd54a0a 100755 (executable)
@@ -42,6 +42,7 @@ def reset_devs(dev, apdev):
 
     try:
         hapd = HostapdGlobal()
+        hapd.flush()
         hapd.remove('wlan3-3')
         hapd.remove('wlan3-2')
         for ap in apdev: