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:
parent
56321c0ac2
commit
5007766d78
1 changed files with 13 additions and 9 deletions
|
@ -983,6 +983,7 @@ def test_wpas_ap_vendor_elems(dev):
|
||||||
dev[0].select_network(id)
|
dev[0].select_network(id)
|
||||||
wait_ap_ready(dev[0])
|
wait_ap_ready(dev[0])
|
||||||
|
|
||||||
|
try:
|
||||||
beacon_elems = "dd0411223301"
|
beacon_elems = "dd0411223301"
|
||||||
dev[0].set("ap_vendor_elements", beacon_elems)
|
dev[0].set("ap_vendor_elements", beacon_elems)
|
||||||
dev[0].set("ap_assocresp_elements", "dd0411223302")
|
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())
|
bss = dev[1].get_bss(dev[0].own_addr())
|
||||||
if beacon_elems not in bss['ie']:
|
if beacon_elems not in bss['ie']:
|
||||||
raise Exception("Vendor element not visible in scan results")
|
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):
|
def test_wpas_ap_lifetime_in_memory(dev, apdev, params):
|
||||||
"""wpa_supplicant AP mode and PSK/PTK lifetime in memory"""
|
"""wpa_supplicant AP mode and PSK/PTK lifetime in memory"""
|
||||||
|
|
Loading…
Reference in a new issue