From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v3 7/8] auto-t: add affinities property for station, and extended_service_set
Date: Fri, 23 Aug 2024 11:00:05 -0700 [thread overview]
Message-ID: <20240823180006.317353-7-prestwoj@gmail.com> (raw)
In-Reply-To: <20240823180006.317353-1-prestwoj@gmail.com>
---
autotests/util/iwd.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 74bb25c0..83f2d9ef 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -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.
--
2.34.1
next prev parent reply other threads:[~2024-08-23 18:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-23 17:59 [PATCH v3 1/8] doc: Document station Affinities property James Prestwood
2024-08-23 18:00 ` [PATCH v3 2/8] netdev: define netdev settings in netdev.h James Prestwood
2024-08-23 21:03 ` Ryan Smith
2024-08-23 22:24 ` James Prestwood
2024-08-23 18:00 ` [PATCH v3 3/8] netdev: store signal threshold in netdev object, not globally James Prestwood
2024-08-23 18:00 ` [PATCH v3 4/8] netdev: add critical signal threshold level James Prestwood
2024-08-23 18:00 ` [PATCH v3 5/8] station: add Affinities DBus property James Prestwood
2024-08-23 18:00 ` [PATCH v3 6/8] station: Use Affinities property to change roaming threshold James Prestwood
2024-08-23 18:00 ` James Prestwood [this message]
2024-08-23 18:00 ` [PATCH v3 8/8] auto-t: add tests for Affinities behavior James Prestwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240823180006.317353-7-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox