]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix dpp_intro_mismatch to match implementation
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 9 Mar 2022 23:16:29 +0000 (01:16 +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 b7f035077daf424c344ae80f7a0923b0f806be2d..e7c2783bddbb55d84481e74229384723dbdb0091 100644 (file)
@@ -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)