Wireless Daemon for Linux
 help / color / mirror / Atom feed
* [PATCH 08/12] auto-t: iwd.py: allow passing uri to start_configurator
@ 2022-01-18 21:25 James Prestwood
  0 siblings, 0 replies; only message in thread
From: James Prestwood @ 2022-01-18 21:25 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 54b4819e..3f21d5d6 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()
@@ -667,8 +670,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.31.1

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

only message in thread, other threads:[~2022-01-18 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 21:25 [PATCH 08/12] auto-t: iwd.py: allow passing uri to start_configurator James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox