From 97136c83e80414f5909a1887752699e5217a753c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 4 Jul 2017 15:49:35 +0300 Subject: [PATCH] tests: DPP_BOOTSTRAP_INFO with hostapd Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index bbf37af1b..7f0579104 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")