mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
auto-t: do a full scan when getting network
This ensures the network will be scanned for again if not found.
This commit is contained in:
parent
12c77ef647
commit
f717480c18
@ -20,18 +20,7 @@ class Test(unittest.TestCase):
|
|||||||
|
|
||||||
if not autoconnect:
|
if not autoconnect:
|
||||||
if not connect_hidden:
|
if not connect_hidden:
|
||||||
condition = 'not obj.scanning'
|
network = device.get_ordered_network('transition', full_scan=True)
|
||||||
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.network_object.connect()
|
network.network_object.connect()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user