From 9232991e2540a445cd537037d21c37db9e963557 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 25 Jun 2024 06:06:24 -0700 Subject: [PATCH] auto-t: add test for a deauth coming in during an FT-roam --- autotests/testPSK-roam/failed_roam_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/autotests/testPSK-roam/failed_roam_test.py b/autotests/testPSK-roam/failed_roam_test.py index 8cce8bb5..60bcf366 100644 --- a/autotests/testPSK-roam/failed_roam_test.py +++ b/autotests/testPSK-roam/failed_roam_test.py @@ -149,6 +149,21 @@ class Test(unittest.TestCase): condition = 'obj.state == DeviceState.disconnected' self.wd.wait_for_object_condition(device, condition) + def test_ft_deauth_before_association(self): + self.rule2.enabled = True + self.rule3.enabled = True + + device = self.wd.list_devices(1)[0] + + self.connect(self.wd, device, self.bss_hostapd[0]) + + device.wait_for_event('ft-authenticating', timeout=60) + + self.bss_hostapd[1].deauthenticate(device.address) + + condition = 'obj.state == DeviceState.disconnected' + self.wd.wait_for_object_condition(device, condition) + def setUp(self): self.wd = IWD(True)