All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 5/9] auto-t: iwd.py: allow passing uri to start_configurator
@ 2022-02-18 19:31 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-02-18 19:31 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

If a URI is passed this will envoke ConfigureEnrollee()
---
 autotests/util/iwd.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/autotests/util/iwd.py b/autotests/util/iwd.py
index 170dd96b..d6620da5 100755
--- a/autotests/util/iwd.py
+++ b/autotests/util/iwd.py
@@ -280,8 +280,11 @@ class DeviceProvisioning(IWDDBusAbstract):
     def start_enrollee(self):
         return self._iface.StartEnrollee()
 
-    def start_configurator(self):
-        return self._iface.StartConfigurator()
+    def start_configurator(self, uri=None):
+        if uri:
+            return self._iface.ConfigureEnrollee(uri)
+        else:
+            return self._iface.StartConfigurator()
 
     def stop(self):
         self._iface.Stop()
@@ -668,8 +671,8 @@ class Device(IWDDBusAbstract):
     def dpp_start_enrollee(self):
         return self._device_provisioning.start_enrollee()
 
-    def dpp_start_configurator(self):
-        return self._device_provisioning.start_configurator()
+    def dpp_start_configurator(self, uri=None):
+        return self._device_provisioning.start_configurator(uri)
 
     def dpp_stop(self):
         return self._device_provisioning.stop()
-- 
2.34.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-18 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18 19:31 [PATCH v4 5/9] auto-t: iwd.py: allow passing uri to start_configurator James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.