diff mbox series

[5/6] auto-t: add set/unset affinity python methods

Message ID 20240729124410.1763549-5-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series [1/6] doc: Document new BSS affinity method calls | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood July 29, 2024, 12:44 p.m. UTC
---
 autotests/util/iwd.py | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 1d4a5472..211f3777 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -940,6 +940,16 @@  class Device(IWDDBusAbstract):
 
         return ret
 
+    def set_connected_bss_affinity(self):
+        self._station.SetConnectedBssAffinity(reply_handler=self._success,
+                                        error_handler=self._failure)
+        self._wait_for_async_op()
+
+    def unset_connected_bss_affinity(self):
+        self._station.UnsetConnectedBssAffinity(reply_handler=self._success,
+                                        error_handler=self._failure)
+        self._wait_for_async_op()
+
     def __str__(self, prefix = ''):
         s = prefix + 'Device: ' + self.device_path + '\n'\
                + prefix + '\tName:\t\t' + self.name + '\n'\