tests: Clear vendor elements at the end of wpas_ap_vendor_elems

This is needed to avoid surprises in the following test cases. This was
found with a failure in the following test sequence:
wpas_ap_vendor_elems p2p_ext_discovery_go

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-10-05 00:21:12 +03:00 committed by Jouni Malinen
parent 56321c0ac2
commit 5007766d78

View file

@ -983,6 +983,7 @@ def test_wpas_ap_vendor_elems(dev):
dev[0].select_network(id)
wait_ap_ready(dev[0])
try:
beacon_elems = "dd0411223301"
dev[0].set("ap_vendor_elements", beacon_elems)
dev[0].set("ap_assocresp_elements", "dd0411223302")
@ -993,6 +994,9 @@ def test_wpas_ap_vendor_elems(dev):
bss = dev[1].get_bss(dev[0].own_addr())
if beacon_elems not in bss['ie']:
raise Exception("Vendor element not visible in scan results")
finally:
dev[0].set("ap_vendor_elements", "")
dev[0].set("ap_assocresp_elements", "")
def test_wpas_ap_lifetime_in_memory(dev, apdev, params):
"""wpa_supplicant AP mode and PSK/PTK lifetime in memory"""