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

auto-t: rekey in FT/FILS tests

This commit is contained in:
James Prestwood 2021-09-28 15:36:09 -07:00 committed by Denis Kenzior
parent 7c1e3ab76a
commit 83a30fe5ae
4 changed files with 12 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class Test(unittest.TestCase):
testutil.test_iface_operstate()
testutil.test_ifaces_connected(device.name, hapd.ifname)
hapd.rekey(device.address)
hapd.wait_for_event('EAPOL-4WAY-HS-COMPLETED')
device.disconnect()
@classmethod

View File

@ -55,6 +55,9 @@ class Test(unittest.TestCase):
testutil.test_iface_operstate()
testutil.test_ifaces_connected(device.name, hapd.ifname)
hapd.rekey(device.address)
hapd.wait_for_event('EAPOL-4WAY-HS-COMPLETED')
device.disconnect()
@classmethod

View File

@ -95,6 +95,9 @@ class Test(unittest.TestCase):
self.assertRaises(Exception, testutil.test_ifaces_connected,
(self.bss_hostapd[0].ifname, device.name, True, True))
self.bss_hostapd[1].rekey(device.address)
self.bss_hostapd[1].wait_for_event('EAPOL-4WAY-HS-COMPLETED')
def test_fils_ft_roam_sha256(self):
wd = IWD(True)

View File

@ -80,6 +80,9 @@ class Test(unittest.TestCase):
self.assertRaises(Exception, testutil.test_ifaces_connected,
(self.bss_hostapd[0].ifname, device.name, True, True))
self.bss_hostapd[1].rekey(device.address)
self.bss_hostapd[1].wait_for_event('EAPOL-4WAY-HS-COMPLETED')
device.roam(self.bss_hostapd[0].bssid)
condition = 'obj.state == DeviceState.roaming'