From: Jouni Malinen Date: Wed, 9 Mar 2022 23:28:51 +0000 (+0200) Subject: tests: Fix dpp_own_config_curve_mismatch to match implementation X-Git-Tag: hostap_2_11~2173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ce5ed88a9c782f946854693ca8a658e5417f4ab;p=thirdparty%2Fhostap.git tests: Fix dpp_own_config_curve_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 --- diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index e7c2783bd..2deb7205a 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -3142,6 +3142,7 @@ def run_dpp_own_config(dev, apdev, own_curve=None, expect_failure=False, dev[0].set("dpp_config_processing", "1") cmd = "DPP_CONFIGURATOR_SIGN conf=sta-dpp configurator=%d%s" % (conf_id, extra) if own_curve: + dev[0].dpp_configurator_set(conf_id, net_access_key_curve=own_curve) cmd += " curve=" + own_curve res = dev[0].request(cmd) if "FAIL" in res: