tests: Make sigma_dut_dpp_qr_mutual_resp_enrollee_connector_privacy more robust

Clear the dpp_connector_privacy_default parameter value that sigma_dut
set in wpa_supplicant at the end of the test case to avoid surprising
behavior for the following test cases. This was found with a failure in
the following test sequence:
sigma_dut_dpp_qr_mutual_resp_enrollee_connector_privacy
sigma_dut_dpp_proto_peer_disc_req

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-10-05 00:17:52 +03:00 committed by Jouni Malinen
parent 8219d2b7dd
commit 56321c0ac2

View file

@ -1792,8 +1792,11 @@ def test_sigma_dut_dpp_qr_mutual_resp_enrollee_connector_privacy(dev, apdev):
"""sigma_dut DPP/QR (mutual) responder as Enrollee (Connector Privacy)""" """sigma_dut DPP/QR (mutual) responder as Enrollee (Connector Privacy)"""
check_dpp_capab(dev[0], min_ver=3) check_dpp_capab(dev[0], min_ver=3)
check_dpp_capab(dev[1], min_ver=3) check_dpp_capab(dev[1], min_ver=3)
try:
run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev, run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev,
",DPPPrivNetIntro,Yes") ",DPPPrivNetIntro,Yes")
finally:
dev[0].set("dpp_connector_privacy_default", "0", allow_fail=True)
def run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev, extra=None): def run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev, extra=None):
check_dpp_capab(dev[0]) check_dpp_capab(dev[0])