From 2377d817da06c5780491079c28443341d82bf51f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 18 Dec 2022 20:58:02 +0200 Subject: [PATCH] tests: DPP QR Code and hostapd as initiator/Configurator (offchannel) Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 7ffc0ab13..9477ea4f3 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -2343,6 +2343,19 @@ def run_dpp_qr_code_hostapd_init_offchannel(dev, apdev, extra): wait_auth_success(dev[0], hapd, configurator=dev[0], enrollee=hapd, stop_responder=True) +def test_dpp_qr_code_hostapd_init_offchannel_configurator(dev, apdev): + """DPP QR Code and hostapd as initiator/Configurator (offchannel)""" + check_dpp_capab(dev[0]) + hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured", + "channel": "11"}) + check_dpp_capab(hapd) + id0 = dev[0].dpp_bootstrap_gen(chan="81/1") + uri0 = dev[0].request("DPP_BOOTSTRAP_GET_URI %d" % id0) + dev[0].dpp_listen(2412) + conf_id = hapd.dpp_configurator_add() + hapd.dpp_auth_init(uri=uri0, configurator=conf_id, conf="sta-dpp") + wait_auth_success(dev[0], hapd, configurator=hapd, enrollee=dev[0]) + def test_dpp_qr_code_hostapd_ignore_mismatch(dev, apdev): """DPP QR Code and hostapd ignoring netaccessKey mismatch""" check_dpp_capab(dev[0])