@@ -596,6 +596,11 @@ class Device(IWDDBusAbstract):
props = self._station_properties()
return props.get('ConnectedNetwork')
+ @property
+ def connected_bss(self):
+ props = self._station_properties()
+ return props.get('ConnectedAccessPoint')
+
@property
def powered(self):
'''
@@ -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.
@@ -975,6 +993,10 @@ class Network(IWDDBusAbstract):
'''
return bool(self._properties['Connected'])
+ @property
+ def extended_service_set(self):
+ return self._properties['ExtendedServiceSet']
+
def connect(self, wait=True):
'''
Connect to the network. Request the device implied by the object