mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Make gas_anqp_extra_elements more robust
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>
This commit is contained in:
parent
c304bddcf9
commit
dd900637b2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user