]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix dpp_own_config_curve_mismatch to match implementation
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 9 Mar 2022 23:28:51 +0000 (01:28 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 9 Mar 2022 23:30:33 +0000 (01:30 +0200)
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 <quic_jouni@quicinc.com>
tests/hwsim/test_dpp.py

index e7c2783bddbb55d84481e74229384723dbdb0091..2deb7205a9bdc2d4d3fdb740985b881312a3f950 100644 (file)
@@ -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: