commit 9232991e2540a445cd537037d21c37db9e963557
parent 71dc3475821052c1f45160fb90407e7c941de635
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 25 Jun 2024 06:06:24 -0700
auto-t: add test for a deauth coming in during an FT-roam
Diffstat:
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git 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)