]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make dbus_old_wps_pbc more robust
authorJouni Malinen <j@w1.fi>
Sat, 20 Jun 2015 12:35:52 +0000 (15:35 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jun 2015 12:35:52 +0000 (15:35 +0300)
Flush the cfg80211 scan cache explicitly to avoid false failure reports
if a BSS entry from an earlier test case remain. Such a failure could be
hit, e.g., with the following test case sequence:
wpas_mesh_mode_scan p2p_channel_random_social dbus_old_wps_pbc

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_dbus_old.py

index 8a76636ee36f47b0fcd9406cca7665d12f8f4b55..874d411286b67526472d8b720e6564d25c1ddd0f 100644 (file)
@@ -637,6 +637,7 @@ def test_dbus_old_wps_pbc(dev, apdev):
 def _test_dbus_old_wps_pbc(dev, apdev):
     (bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
 
+    dev[0].flush_scan_cache()
     hapd = start_ap(apdev[0])
     hapd.request("WPS_PBC")
     bssid = apdev[0]['bssid']