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 <quic_jouni@quicinc.com>
This commit is contained in:
parent
de5939ef52
commit
c4a36d050a
1 changed files with 3 additions and 2 deletions
|
@ -3226,8 +3226,8 @@ def test_dpp_intro_mismatch(dev, apdev):
|
||||||
|
|
||||||
def run_dpp_intro_mismatch(dev, apdev, wpas):
|
def run_dpp_intro_mismatch(dev, apdev, wpas):
|
||||||
check_dpp_capab(dev[0])
|
check_dpp_capab(dev[0])
|
||||||
check_dpp_capab(dev[1])
|
check_dpp_capab(dev[1], min_ver=3)
|
||||||
check_dpp_capab(dev[2])
|
check_dpp_capab(dev[2], min_ver=3)
|
||||||
logger.info("Start AP in unconfigured state")
|
logger.info("Start AP in unconfigured state")
|
||||||
hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
|
hapd = hostapd.add_ap(apdev[0], {"ssid": "unconfigured"})
|
||||||
check_dpp_capab(hapd)
|
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)
|
uri5 = wpas.request("DPP_BOOTSTRAP_GET_URI %d" % id5)
|
||||||
wpas.dpp_listen(2412)
|
wpas.dpp_listen(2412)
|
||||||
dev[1].set("dpp_groups_override", '')
|
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)
|
dev[1].dpp_auth_init(uri=uri5, conf="sta-dpp", configurator=conf_id)
|
||||||
wait_auth_success(wpas, dev[1], configurator=dev[1], enrollee=wpas)
|
wait_auth_success(wpas, dev[1], configurator=dev[1], enrollee=wpas)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue