From: Jouni Malinen Date: Sat, 3 Oct 2015 21:35:12 +0000 (+0300) Subject: tests: Fix connect_cmd_roam with old scan results X-Git-Tag: hostap_2_6~1591 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d56bd734ce8f0a456f686496d18b3eb40abcb7c;p=thirdparty%2Fhostap.git 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 --- 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'])