tests: Fix eht_mld_sae_legacy_client to restore sae_pwe

Changing sae_pwe and leaving the modified value for the following test
cases can result in failures.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-07-21 20:17:53 +03:00 committed by Jouni Malinen
parent d320692d91
commit faee8b99e9

View file

@ -403,6 +403,7 @@ def test_eht_mld_sae_legacy_client(dev, apdev):
hapd1 = eht_mld_enable_ap(hapd_iface, params) hapd1 = eht_mld_enable_ap(hapd_iface, params)
try:
dev[0].set("sae_groups", "") dev[0].set("sae_groups", "")
dev[0].set("sae_pwe", "1") dev[0].set("sae_pwe", "1")
dev[0].connect(ssid, sae_password=passphrase, scan_freq="2412", dev[0].connect(ssid, sae_password=passphrase, scan_freq="2412",
@ -410,6 +411,9 @@ def test_eht_mld_sae_legacy_client(dev, apdev):
eht_verify_status(dev[0], hapd0, 2412, 20, is_ht=True) eht_verify_status(dev[0], hapd0, 2412, 20, is_ht=True)
traffic_test(dev[0], hapd0) traffic_test(dev[0], hapd0)
finally:
dev[0].set("sae_groups", "")
dev[0].set("sae_pwe", "0")
def test_eht_mld_sae_transition(dev, apdev): def test_eht_mld_sae_transition(dev, apdev):
"""EHT MLD AP in SAE/PSK transition mode with MLD client connection using two links""" """EHT MLD AP in SAE/PSK transition mode with MLD client connection using two links"""