]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_hs20_gas_while_associated_with_pmf more robust
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 21:38:36 +0000 (23:38 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Dec 2019 21:38:36 +0000 (23:38 +0200)
Explicitly clear cfg80211 scan cache to avoid issues with old BSS
entries from previous test cases.

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

index af6e348e32dbd768b325d794d960094cb65807a2..8b4ab810459d4a9e6efa9d2e576f1bc5b409ef67 100644 (file)
@@ -1444,6 +1444,7 @@ def _test_ap_hs20_gas_while_associated_with_pmf(dev, apdev):
     params['nai_realm'] = ["0,no-match.example.org,13[5:6],21[2:4][5:7]"]
     hostapd.add_ap(apdev[1], params)
 
+    dev[0].flush_scan_cache()
     dev[0].hs20_enable()
     dev[0].request("SET pmf 2")
     id = dev[0].add_cred_values({'realm': "example.com",