3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

auto-t: add SAE test for a non-ACKed confirm

This commit is contained in:
James Prestwood 2021-09-09 15:08:46 -07:00 committed by Denis Kenzior
parent 1574909535
commit a0a05a88b9

View File

@ -63,6 +63,30 @@ class Test(unittest.TestCase):
rule0.remove() 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 @classmethod
def setUpClass(cls): def setUpClass(cls):
pass pass