From ab8e091946d95378ee9ad1c8177677856d9c80ca Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 21 May 2021 12:33:23 -0500 Subject: [PATCH] auto-t: Restructure FT-PSK-roam to be like other FT roam tests --- autotests/testFT-PSK-roam/connection_test.py | 5 ++--- 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 index 7399e5e1..716d83c4 100644 --- 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