All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 10/13] auto-t: do a full scan when getting network
@ 2022-03-28 17:28 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-03-28 17:28 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

This ensures the network will be scanned for again if not found.
---
 autotests/testOWE-transition/connection_test.py | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/autotests/testOWE-transition/connection_test.py b/autotests/testOWE-transition/connection_test.py
index aeaea70a..ff5ea811 100644
--- a/autotests/testOWE-transition/connection_test.py
+++ b/autotests/testOWE-transition/connection_test.py
@@ -20,18 +20,7 @@ class Test(unittest.TestCase):
 
         if not autoconnect:
             if not connect_hidden:
-                condition = 'not obj.scanning'
-                wd.wait_for_object_condition(device, condition)
-
-                device.scan()
-
-                condition = 'obj.scanning'
-                wd.wait_for_object_condition(device, condition)
-
-                condition = 'not obj.scanning'
-                wd.wait_for_object_condition(device, condition)
-
-                network = device.get_ordered_network('transition', scan_if_needed=False)
+                network = device.get_ordered_network('transition', full_scan=True)
 
                 network.network_object.connect()
             else:
-- 
2.34.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-28 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-28 17:28 [PATCH v4 10/13] auto-t: do a full scan when getting network James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.