* Re: [PATCH 08/10] auto-t: wpas.py: add freq argument to configurator_start
@ 2022-01-12 16:05 Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-01-12 16:05 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 308 bytes --]
Hi James,
On 1/11/22 18:55, James Prestwood wrote:
> This forces the configurator to request a new channel during the
> authentication protocol.
> ---
> autotests/util/wpas.py | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
Patches 8-10 applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 08/10] auto-t: wpas.py: add freq argument to configurator_start
@ 2022-01-12 0:55 James Prestwood
0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-01-12 0:55 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]
This forces the configurator to request a new channel during the
authentication protocol.
---
autotests/util/wpas.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/autotests/util/wpas.py b/autotests/util/wpas.py
index 2e50eb58..f8ef3357 100644
--- a/autotests/util/wpas.py
+++ b/autotests/util/wpas.py
@@ -268,11 +268,17 @@ class Wpas:
print("DPP Configurator ID: %s. DPP QR ID: %s" % (self._dpp_conf_id, self._dpp_qr_id))
- def dpp_configurator_start(self, ssid, passphrase):
+ def dpp_configurator_start(self, ssid, passphrase, freq=None):
ssid = binascii.hexlify(ssid.encode()).decode()
passphrase = binascii.hexlify(passphrase.encode()).decode()
- self._ctrl_request('DPP_AUTH_INIT peer=%s conf=sta-psk ssid=%s pass=%s' % (self._dpp_qr_id, ssid, passphrase))
+ cmd = 'DPP_AUTH_INIT peer=%s conf=sta-psk ssid=%s pass=%s ' % (self._dpp_qr_id, ssid, passphrase)
+
+ if freq:
+ cmd += 'neg_freq=%u ' % freq
+
+ self._rx_data = []
+ self._ctrl_request(cmd)
self.wait_for_event('DPP-AUTH-SUCCESS')
self.wait_for_event('DPP-CONF-SENT')
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-12 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 16:05 [PATCH 08/10] auto-t: wpas.py: add freq argument to configurator_start Denis Kenzior
-- strict thread matches above, loose matches on Subject: below --
2022-01-12 0:55 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.