]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make gas_anqp_extra_elements more robust
authorJouni Malinen <jouni@codeaurora.org>
Tue, 11 Feb 2020 05:54:47 +0000 (07:54 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Tue, 11 Feb 2020 05:54:47 +0000 (07:54 +0200)
Explicitly flush cfg80211 scan cache for this test case since the BSS
entry check might fail if there are multiple results for the same BSSID.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_gas.py

index e167932365d9e8bf1214dda2b2820bf5477e76c1..ec132f712cd4bee0e531a7c00f179bb627e9865d 100644 (file)
@@ -1209,6 +1209,7 @@ def test_gas_anqp_extra_elements(dev, apdev):
     hapd = hostapd.add_ap(apdev[0], params)
     bssid = apdev[0]['bssid']
 
+    dev[0].flush_scan_cache()
     dev[0].scan_for_bss(bssid, freq="2412", force_scan=True)
     if "OK" not in dev[0].request("ANQP_GET " + bssid + " 265,266"):
         raise Exception("ANQP_GET command failed")