mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
tests: DPP_BOOTSTRAP_INFO with hostapd
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
a86fb43ca3
commit
97136c83e8
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user