3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

auto-t: add test for IWD as configurator + initiator

This commit is contained in:
James Prestwood 2022-02-22 14:28:46 -08:00 committed by Denis Kenzior
parent cfb0987eb5
commit 521960c7d6

View File

@ -82,6 +82,22 @@ class Test(unittest.TestCase):
self.wpas.wait_for_event('DPP-CONF-RECEIVED') self.wpas.wait_for_event('DPP-CONF-RECEIVED')
def test_iwd_as_configurator_initiator(self):
self.hapd.reload()
self.hapd.wait_for_event('AP-ENABLED')
IWD.copy_to_storage('ssidCCMP.psk')
self.device.autoconnect = True
condition = 'obj.state == DeviceState.connected'
self.wd.wait_for_object_condition(self.device, condition)
uri = self.wpas.dpp_enrollee_start(oper_and_channel='81/2')
self.device.dpp_start_configurator(uri)
self.hapd.wait_for_event('AP-STA-CONNECTED 42:00:00:00:00:00')
def setUp(self): def setUp(self):
self.wd = IWD(True) self.wd = IWD(True)
self.device = self.wd.list_devices(1)[0] self.device = self.wd.list_devices(1)[0]