3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

auto-t: do full scan for testSAE

This will ensure the IWD scans until the network is found.
This commit is contained in:
James Prestwood 2022-03-28 10:28:37 -07:00 committed by Denis Kenzior
parent c852892426
commit 51d4e14440

View File

@ -23,19 +23,7 @@ class Test(unittest.TestCase):
device.disconnect()
wd.wait_for_object_condition(device, 'not obj.scanning')
device.debug_scan([2412])
wd.wait_for_object_condition(device, 'obj.scanning')
wd.wait_for_object_condition(device, 'not obj.scanning')
#
# An explicit scan was done prior due to hostapd options changing.
# Because of this scan_if_needed is set to False to avoid a redundant
# scan
#
network = device.get_ordered_network('ssidSAE', scan_if_needed=False)
network = device.get_ordered_network('ssidSAE', full_scan=True)
self.assertEqual(network.type, NetworkType.psk)