aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-07-04 12:49:35 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-04 12:56:43 (GMT)
commit97136c83e80414f5909a1887752699e5217a753c (patch)
tree098131f9c5d8417d2fccfff513c8c5f3c8544698 /tests
parenta86fb43ca3a93da89e82e0aa307520baf2060004 (diff)
downloadhostap-97136c83e80414f5909a1887752699e5217a753c.zip
hostap-97136c83e80414f5909a1887752699e5217a753c.tar.gz
hostap-97136c83e80414f5909a1887752699e5217a753c.tar.bz2
tests: DPP_BOOTSTRAP_INFO with hostapd
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dpp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py
index bbf37af..7f05791 100644
--- a/tests/hwsim/test_dpp.py
+++ b/tests/hwsim/test_dpp.py
@@ -1497,6 +1497,14 @@ def test_dpp_hostapd_configurator(dev, apdev):
raise Exception("Failed to parse QR Code URI")
id1 = int(res)
+ res = hapd.request("DPP_BOOTSTRAP_INFO %d" % id0)
+ if "FAIL" in res:
+ raise Exception("DPP_BOOTSTRAP_INFO failed")
+ if "type=QRCODE" not in res:
+ raise Exception("DPP_BOOTSTRAP_INFO did not report correct type")
+ if "mac_addr=" + dev[0].own_addr() not in res:
+ raise Exception("DPP_BOOTSTRAP_INFO did not report correct mac_addr")
+
cmd = "DPP_LISTEN 2412"
if "OK" not in dev[0].request(cmd):
raise Exception("Failed to start listen operation")