ANQP is performed as the scan results come in but scanning is still signaled as done regardless of if ANQP has finished. Autoconnect will wait for ANQP to complete, but as far as an explicit DBus call we are just assuming ANQP finished. For now, we can work around this in the autotest and wait a bit before issuing Connect(). The real fix would either be to delay setting scanning as done, or have network/station wait for ANQP to complete before checking the network settings. --- autotests/testHotspot/hotspot_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autotests/testHotspot/hotspot_test.py b/autotests/testHotspot/hotspot_test.py index 0f18fae1..389038fd 100644 --- a/autotests/testHotspot/hotspot_test.py +++ b/autotests/testHotspot/hotspot_test.py @@ -11,6 +11,7 @@ from iwd import PSKAgent from iwd import NetworkType from hostapd import HostapdCLI import testutil +from time import sleep class Test(unittest.TestCase): @@ -33,6 +34,8 @@ class Test(unittest.TestCase): condition = 'not obj.scanning' wd.wait_for_object_condition(device, condition) + sleep(1) + ordered_network = device.get_ordered_network('Hotspot') self.assertEqual(ordered_network.type, NetworkType.eap) -- 2.21.1