tests: Clear scan cache at the end of ap_wps_cancel
This is needed to avoid leaving behind a BSS entry with WPS enabled for the next text case in some cases. In particular, this was causing issues in the following sequence of test cases: ap_wps_conf_chan14 ap_wps_cancel ap_wps_pin_request_file Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
9d5fd33282
commit
781720fb1a
1 changed files with 1 additions and 0 deletions
|
@ -1145,6 +1145,7 @@ def test_ap_wps_cancel(dev, apdev):
|
||||||
bss = dev[0].get_bss(apdev[0]['bssid'])
|
bss = dev[0].get_bss(apdev[0]['bssid'])
|
||||||
if "[WPS-AUTH]" in bss['flags']:
|
if "[WPS-AUTH]" in bss['flags']:
|
||||||
raise Exception("WPS-AUTH flag not cleared")
|
raise Exception("WPS-AUTH flag not cleared")
|
||||||
|
dev[0].flush_scan_cache()
|
||||||
|
|
||||||
def test_ap_wps_er_add_enrollee(dev, apdev):
|
def test_ap_wps_er_add_enrollee(dev, apdev):
|
||||||
"""WPS ER configuring AP and adding a new enrollee using PIN"""
|
"""WPS ER configuring AP and adding a new enrollee using PIN"""
|
||||||
|
|
Loading…
Reference in a new issue