From: James Prestwood <prestwoj at gmail.com>
To: iwd at lists.01.org
Subject: [PATCH 08/12] auto-t: iwd.py: allow passing uri to start_configurator
Date: Tue, 18 Jan 2022 13:25:08 -0800 [thread overview]
Message-ID: <20220118212512.2017977-8-prestwoj@gmail.com> (raw)
In-Reply-To: 20220118212512.2017977-1-prestwoj@gmail.com
[-- 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
reply other threads:[~2022-01-18 21:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220118212512.2017977-8-prestwoj@gmail.com \
--to=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