tests: Make test cases more robust by clearing scan cache explicitly
This test cases can fail if previously executed tests leave older scan results in cfg80211 scan table. Clear that scan table explicitly to avoid such issues. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
a44fa15cb1
commit
fa34e3255e
6 changed files with 26 additions and 1 deletions
|
@ -149,6 +149,7 @@ def test_ap_reconnect_auth_timeout(dev, apdev, params):
|
|||
wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
|
||||
wpas.interface_add("wlan5",
|
||||
drv_params="force_connect_cmd=1,force_bss_selection=1")
|
||||
wpas.flush_scan_cache()
|
||||
|
||||
params = hostapd.wpa2_params(ssid="test-wpa2-psk", passphrase="12345678")
|
||||
hapd0 = hostapd.add_ap(apdev[0], params)
|
||||
|
@ -380,6 +381,7 @@ def test_ap_roam_signal_level_override(dev, apdev):
|
|||
def test_ap_roam_during_scan(dev, apdev):
|
||||
"""Roam command during a scan operation"""
|
||||
hapd0 = hostapd.add_ap(apdev[0], {"ssid": "test-open"})
|
||||
dev[0].flush_scan_cache()
|
||||
dev[0].scan_for_bss(hapd0.own_addr(), freq=2412)
|
||||
dev[0].connect("test-open", key_mgmt="NONE")
|
||||
hapd1 = hostapd.add_ap(apdev[1], {"ssid": "test-open"})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue