Skip to content

Commit 2377d81

Browse files
committed
tests: DPP QR Code and hostapd as initiator/Configurator (offchannel)
Signed-off-by: Jouni Malinen <[email protected]>
1 parent d9d5e55 commit 2377d81

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/hwsim/test_dpp.py

+13
Original file line numberDiff line numberDiff line change
@@ -2343,6 +2343,19 @@ def run_dpp_qr_code_hostapd_init_offchannel(dev, apdev, extra):
23432343
wait_auth_success(dev[0], hapd, configurator=dev[0], enrollee=hapd,
23442344
stop_responder=True)
23452345

2346+
def test_dpp_qr_code_hostapd_init_offchannel_configurator(dev, apdev):
2347+
"""DPP QR Code and hostapd as initiator/Configurator (offchannel)"""
2348+
check_dpp_capab(dev[0])
2349+
hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured",
2350+
"channel": "11"})
2351+
check_dpp_capab(hapd)
2352+
id0 = dev[0].dpp_bootstrap_gen(chan="81/1")
2353+
uri0 = dev[0].request("DPP_BOOTSTRAP_GET_URI %d" % id0)
2354+
dev[0].dpp_listen(2412)
2355+
conf_id = hapd.dpp_configurator_add()
2356+
hapd.dpp_auth_init(uri=uri0, configurator=conf_id, conf="sta-dpp")
2357+
wait_auth_success(dev[0], hapd, configurator=hapd, enrollee=dev[0])
2358+
23462359
def test_dpp_qr_code_hostapd_ignore_mismatch(dev, apdev):
23472360
"""DPP QR Code and hostapd ignoring netaccessKey mismatch"""
23482361
check_dpp_capab(dev[0])

0 commit comments

Comments
 (0)