tests: Flush scan cache to make dbus_anqp_get more reliable
This test could have failed if scan results from a previously executed test case were still the in the driver cache. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
a9bc6e89df
commit
0e4bff095b
1 changed files with 1 additions and 0 deletions
|
@ -6283,6 +6283,7 @@ def test_dbus_anqp_get(dev, apdev):
|
||||||
"fin:Esimerkkioperaattori"]
|
"fin:Esimerkkioperaattori"]
|
||||||
hapd = hostapd.add_ap(apdev[0], params)
|
hapd = hostapd.add_ap(apdev[0], params)
|
||||||
|
|
||||||
|
dev[0].flush_scan_cache()
|
||||||
dev[0].scan_for_bss(bssid, freq="2412", force_scan=True)
|
dev[0].scan_for_bss(bssid, freq="2412", force_scan=True)
|
||||||
iface.ANQPGet({"addr": bssid,
|
iface.ANQPGet({"addr": bssid,
|
||||||
"ids": dbus.Array([257], dbus.Signature("q")),
|
"ids": dbus.Array([257], dbus.Signature("q")),
|
||||||
|
|
Loading…
Reference in a new issue