mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-11-25 21:47:22 +01:00
auto-t: iwd.py: fix full_scan argument
This was not being properly honored when existing networks were already populated. This poses an issue for any test which uses full_scan after setting radio values such as signal strength.
This commit is contained in:
parent
327f719f91
commit
6e608b14f5
@ -492,17 +492,18 @@ class Device(IWDDBusAbstract):
|
|||||||
main sorting factor.
|
main sorting factor.
|
||||||
'''
|
'''
|
||||||
ordered_networks = []
|
ordered_networks = []
|
||||||
for bus_obj in self._station.GetOrderedNetworks():
|
if not full_scan:
|
||||||
ordered_network = OrderedNetwork(bus_obj, self._bus, self._namespace)
|
for bus_obj in self._station.GetOrderedNetworks():
|
||||||
ordered_networks.append(ordered_network)
|
ordered_network = OrderedNetwork(bus_obj, self._bus, self._namespace)
|
||||||
|
ordered_networks.append(ordered_network)
|
||||||
|
|
||||||
names = [x.name for x in ordered_networks]
|
names = [x.name for x in ordered_networks]
|
||||||
|
|
||||||
# all() will always return true if 'list' is empty
|
# all() will always return true if 'list' is empty
|
||||||
if all(x in names for x in list) and len(names) > 0:
|
if all(x in names for x in list) and len(names) > 0:
|
||||||
return ordered_networks
|
return ordered_networks
|
||||||
elif not scan_if_needed:
|
elif not scan_if_needed:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
condition = 'not obj.scanning'
|
condition = 'not obj.scanning'
|
||||||
IWD._wait_for_object_condition(self, condition)
|
IWD._wait_for_object_condition(self, condition)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user