From 7d56bd734ce8f0a456f686496d18b3eb40abcb7c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 4 Oct 2015 00:35:12 +0300 Subject: [PATCH] tests: Fix connect_cmd_roam with old scan results connect_cmd_roam did not force a new scan to find the second AP. This could result in failures due to the ROAM command getting rejected, e.g., in the following test case sequence: wext_pmksa_cache connect_cmd_roam. Signed-off-by: Jouni Malinen --- tests/hwsim/test_connect_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_connect_cmd.py b/tests/hwsim/test_connect_cmd.py index 3f4c42b4f..5b528a6de 100644 --- a/tests/hwsim/test_connect_cmd.py +++ b/tests/hwsim/test_connect_cmd.py @@ -149,5 +149,5 @@ def test_connect_cmd_roam(dev, apdev): wpas.connect("sta-connect", key_mgmt="NONE", scan_freq="2412") hostapd.add_ap(apdev[1]['ifname'], params) - wpas.scan_for_bss(apdev[1]['bssid'], freq=2412) + wpas.scan_for_bss(apdev[1]['bssid'], freq=2412, force_scan=True) wpas.roam(apdev[1]['bssid'])