commit c778ddf0c2046c8c95d7b154fb3348def931acd9
parent 2ad9561069d9c5e6571f3a4bf3a43b94797a5633
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 28 Aug 2024 12:24:27 -0700
auto-t: add affinities property for station, and extended_service_set
Diffstat:
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
@@ -597,6 +597,11 @@ class Device(IWDDBusAbstract):
return props.get('ConnectedNetwork')
@property
+ def connected_bss(self):
+ props = self._station_properties()
+ return props.get('ConnectedAccessPoint')
+
+ @property
def powered(self):
'''
True if the interface is UP. If false, the device's radio is
@@ -630,6 +635,19 @@ class Device(IWDDBusAbstract):
self._station_debug._prop_proxy.Set(IWD_STATION_DEBUG_INTERFACE,
'AutoConnect', value)
+ @property
+ def affinities(self):
+ return self._station_properties()['Affinities']
+
+ @affinities.setter
+ def affinities(self, values):
+ self._station_properties()
+ self._station_prop_if.Set(
+ IWD_STATION_INTERFACE, 'Affinities',
+ dbus.Array([dbus.ObjectPath(v) for v in values], signature="o"),
+ reply_handler=self._success, error_handler=self._failure)
+ self._wait_for_async_op()
+
def scan(self, wait=True):
'''Schedule a network scan.