tests: Testing functionality to discard DPP Public Action frames
This can be used to make sure wpa_supplicant does not process DPP messages sent in Public Action frames when a test setup is targeting DPP-over-TCP. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
3550696160
commit
1004fb7ee4
4 changed files with 27 additions and 0 deletions
|
@ -7348,3 +7348,18 @@ def test_dpp_qr_code_config_event_responder(dev, apdev):
|
|||
time.sleep(0.01)
|
||||
dev[0].dump_monitor()
|
||||
dev[1].dump_monitor()
|
||||
|
||||
def test_dpp_discard_public_action(dev, apdev):
|
||||
"""DPP and discarding Public Action frames"""
|
||||
check_dpp_capab(dev[0])
|
||||
check_dpp_capab(dev[1])
|
||||
id0 = dev[0].dpp_bootstrap_gen(chan="81/1")
|
||||
uri0 = dev[0].request("DPP_BOOTSTRAP_GET_URI %d" % id0)
|
||||
dev[0].dpp_listen(2412)
|
||||
dev[1].set("dpp_discard_public_action", "1")
|
||||
dev[1].dpp_auth_init(uri=uri0)
|
||||
ev = dev[0].wait_event(["DPP-FAIL"], timeout=5)
|
||||
if ev is None:
|
||||
raise Exception("Failure not reported")
|
||||
if "No Auth Confirm received" not in ev:
|
||||
raise Exception("Unexpected failure reason: " + ev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue