]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: DPP QR Code and hostapd as initiator/Configurator (offchannel)
authorJouni Malinen <j@w1.fi>
Sun, 18 Dec 2022 18:58:02 +0000 (20:58 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 18 Dec 2022 19:07:56 +0000 (21:07 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_dpp.py

index 7ffc0ab13537fc5f2986232169fc8e1ab75bec22..9477ea4f3ac7159059e681e5b1cf15a688096156 100644 (file)
@@ -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])