From c4a36d050a76bb3943c5f6958f246044199ab492 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 10 Mar 2022 01:16:29 +0200 Subject: [PATCH] tests: Fix dpp_intro_mismatch to match implementation This test case was assuming the Configurator would change the netAccessKey curve every time based on the protocol keys, but that is not the case anymore, so force that change here for a negative test. Signed-off-by: Jouni Malinen --- tests/hwsim/test_dpp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index b7f035077..e7c2783bd 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -3226,8 +3226,8 @@ def test_dpp_intro_mismatch(dev, apdev): def run_dpp_intro_mismatch(dev, apdev, wpas): check_dpp_capab(dev[0]) - check_dpp_capab(dev[1]) - check_dpp_capab(dev[2]) + check_dpp_capab(dev[1], min_ver=3) + check_dpp_capab(dev[2], min_ver=3) logger.info("Start AP in unconfigured state") hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"}) check_dpp_capab(hapd) @@ -3264,6 +3264,7 @@ def run_dpp_intro_mismatch(dev, apdev, wpas): uri5 = wpas.request("DPP_BOOTSTRAP_GET_URI %d" % id5) wpas.dpp_listen(2412) dev[1].set("dpp_groups_override", '') + dev[1].dpp_configurator_set(conf_id, net_access_key_curve="P-521") dev[1].dpp_auth_init(uri=uri5, conf="sta-dpp", configurator=conf_id) wait_auth_success(wpas, dev[1], configurator=dev[1], enrollee=wpas)