commit ab8e091946d95378ee9ad1c8177677856d9c80ca
parent 8d8ea67da1f4815f4ae29060433ccc15008b5088
Author: Denis Kenzior <denkenz@gmail.com>
Date: Fri, 21 May 2021 12:33:23 -0500
auto-t: Restructure FT-PSK-roam to be like other FT roam tests
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/autotests/testFT-PSK-roam/connection_test.py b/autotests/testFT-PSK-roam/connection_test.py
@@ -34,8 +34,6 @@ class Test(unittest.TestCase):
wd.register_psk_agent(psk_agent)
device = wd.list_devices(1)[0]
- # prevent autoconnect
- device.disconnect()
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)
@@ -124,7 +122,6 @@ class Test(unittest.TestCase):
os.system('ifconfig "' + self.bss_hostapd[1].ifname + '" up')
hwsim = Hwsim()
-
for rule in list(hwsim.rules.keys()):
del hwsim.rules[rule]
@@ -144,7 +141,9 @@ class Test(unittest.TestCase):
'" down hw ether 12:00:00:00:00:02 up')
cls.bss_hostapd[0].reload()
+ cls.bss_hostapd[0].wait_for_event("AP-ENABLED")
cls.bss_hostapd[1].reload()
+ cls.bss_hostapd[1].wait_for_event("AP-ENABLED")
# Fill in the neighbor AP tables in both BSSes. By default each
# instance knows only about current BSS, even inside one hostapd