From a0a05a88b929ba73057861a3f7198ee8f63902f0 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 9 Sep 2021 15:08:46 -0700 Subject: [PATCH] auto-t: add SAE test for a non-ACKed confirm --- autotests/testSAE/timeout_test.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/autotests/testSAE/timeout_test.py b/autotests/testSAE/timeout_test.py index 6f757edb..1413bb4a 100644 --- a/autotests/testSAE/timeout_test.py +++ b/autotests/testSAE/timeout_test.py @@ -63,6 +63,30 @@ class Test(unittest.TestCase): rule0.remove() + def test_sta_confirm_not_acked(self): + hostapd = HostapdCLI(config='ssidSAE.conf') + hostapd.set_value('vendor_elements', 'dd0cf4f5e8050500000000000000') + hostapd.set_value('sae_groups', '19') + hostapd.reload() + + hwsim = Hwsim() + bss_radio = hwsim.get_radio('rad0') + + rule0 = hwsim.rules.create() + rule0.source = bss_radio.addresses[0] + rule0.drop = True + rule0.prefix = 'b0' + rule0.match = '02 00 00 00' + rule0.match_offset = 26 + rule0.match_times = 1 + rule0.drop_ack = True + rule0.enabled = True + + wd = IWD(True) + self.validate_connection(wd) + + rule0.remove() + @classmethod def setUpClass(cls): pass