aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-28 20:28:15 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-28 20:28:15 (GMT)
commit8f5abdb874c4b85c5bfb646fed9cd797362cc64c (patch)
treeb5e8ce43d24efa7b054969a1ded9563bfcb55352 /tests
parent3d53cd50abbf498d828ea2187dcec0dd50512956 (diff)
downloadhostap-8f5abdb874c4b85c5bfb646fed9cd797362cc64c.zip
hostap-8f5abdb874c4b85c5bfb646fed9cd797362cc64c.tar.gz
hostap-8f5abdb874c4b85c5bfb646fed9cd797362cc64c.tar.bz2
tests: More coverage in ap_reassociation_to_same_bss
The extra wait forces the special reattach-scan case to be reached in wpa_supplicant_scan(). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_roam.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_roam.py b/tests/hwsim/test_ap_roam.py
index 4456384..cfa5a9d 100644
--- a/tests/hwsim/test_ap_roam.py
+++ b/tests/hwsim/test_ap_roam.py
@@ -103,6 +103,12 @@ def test_ap_reassociation_to_same_bss(dev, apdev):
dev[0].wait_connected(timeout=10, error="Reattach timed out")
hwsim_utils.test_connectivity(dev[0], hapd)
+ # Wait for previous scan results to expire to trigger new scan
+ time.sleep(5)
+ dev[0].request("REATTACH")
+ dev[0].wait_connected(timeout=10, error="Reattach timed out")
+ hwsim_utils.test_connectivity(dev[0], hapd)
+
def test_ap_roam_set_bssid(dev, apdev):
"""Roam control"""
hostapd.add_ap(apdev[0], { "ssid": "test-open" })