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,16 +983,20 @@ def test_wpas_ap_vendor_elems(dev):
|
|||
dev[0].select_network(id)
|
||||
wait_ap_ready(dev[0])
|
||||
|
||||
beacon_elems = "dd0411223301"
|
||||
dev[0].set("ap_vendor_elements", beacon_elems)
|
||||
dev[0].set("ap_assocresp_elements", "dd0411223302")
|
||||
if "OK" not in dev[0].request("UPDATE_BEACON"):
|
||||
raise Exception("UPDATE_BEACON failed")
|
||||
try:
|
||||
beacon_elems = "dd0411223301"
|
||||
dev[0].set("ap_vendor_elements", beacon_elems)
|
||||
dev[0].set("ap_assocresp_elements", "dd0411223302")
|
||||
if "OK" not in dev[0].request("UPDATE_BEACON"):
|
||||
raise Exception("UPDATE_BEACON failed")
|
||||
|
||||
dev[1].connect("wpas-ap-open", key_mgmt="NONE", scan_freq="2412")
|
||||
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")
|
||||
dev[1].connect("wpas-ap-open", key_mgmt="NONE", scan_freq="2412")
|
||||
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"""
|
||||
|
|
Loading…
Reference in a new issue