]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: More coverage in ap_reassociation_to_same_bss
authorJouni Malinen <j@w1.fi>
Sat, 28 May 2016 20:28:15 +0000 (23:28 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 28 May 2016 20:28:15 +0000 (23:28 +0300)
The extra wait forces the special reattach-scan case to be reached in
wpa_supplicant_scan().

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_roam.py

index 4456384eb6c1acda157e36c1d9bef8dd8acb077b..cfa5a9de5f657af122a6ad41bdce9d6ae57e3df1 100644 (file)
@@ -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" })