tests: DPP chirping

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-03-27 12:41:47 +02:00 committed by Jouni Malinen
parent fa5143feb3
commit f1732b4d1a
2 changed files with 156 additions and 6 deletions

View file

@ -1490,6 +1490,17 @@ class WpaSupplicant:
raise Exception("Failed to generate bootstrapping info")
return int(res)
def dpp_bootstrap_set(self, id, conf=None, configurator=None, extra=None):
cmd = "DPP_BOOTSTRAP_SET %d" % id
if extra:
cmd += " " + extra
if conf:
cmd += " conf=" + conf
if configurator is not None:
cmd += " configurator=%d" % configurator
if "OK" not in self.request(cmd):
raise Exception("Failed to set bootstrapping parameters")
def dpp_listen(self, freq, netrole=None, qr=None, role=None):
cmd = "DPP_LISTEN " + str(freq)
if netrole: