]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip background scans in beacon loss tests
authorJouni Malinen <jouni@codeaurora.org>
Fri, 27 Mar 2020 19:05:44 +0000 (21:05 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Mar 2020 19:05:44 +0000 (21:05 +0200)
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>
tests/hwsim/test_bgscan.py

index fdbc03fe6c3aa5f8309906a7d8da42791b2a1a47..5951f82e0615463f9154bb6a0c6149b4fac292f3 100644 (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")