tests: Skip background scans in beacon loss tests

bgscan_learn_beacon_loss was failing quite frequently and it looks like
the background scans were related to those failures. Since those scans
are not really relevant to testing beacon loss, get rid of them in these
test cases to avoid incorrect failures.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-03-27 21:05:44 +02:00 committed by Jouni Malinen
parent ef46f143bc
commit a3eda98c22

View file

@ -78,7 +78,8 @@ def test_bgscan_simple_beacon_loss(dev, apdev):
dev[0].set("disable_sa_query", "1")
dev[0].connect("bgscan", ieee80211w="2", key_mgmt="WPA-PSK-SHA256",
psk="12345678", scan_freq="2412", bgscan="simple:1:-20:2")
psk="12345678", scan_freq="2412",
bgscan="simple:100:-20:200")
hapd.set("ext_mgmt_frame_handling", "1")
if "OK" not in hapd.request("STOP_AP"):
raise Exception("Failed to stop AP")
@ -253,7 +254,7 @@ def test_bgscan_learn_beacon_loss(dev, apdev):
dev[0].set("disable_sa_query", "1")
dev[0].connect("bgscan", ieee80211w="2", key_mgmt="WPA-PSK-SHA256",
psk="12345678", scan_freq="2412", bgscan="learn:1:-20:2")
psk="12345678", scan_freq="2412", bgscan="learn:100:-20:200")
hapd.set("ext_mgmt_frame_handling", "1")
if "OK" not in hapd.request("STOP_AP"):
raise Exception("Failed to stop AP")