From: Jouni Malinen Date: Sat, 26 Apr 2014 19:05:34 +0000 (+0300) Subject: tests: ROAM error cases X-Git-Tag: hostap_2_2~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60b94220802d957bda708395caac37245731c491;p=thirdparty%2Fhostap.git tests: ROAM error cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 9dbd51256..8f5c746e8 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -998,3 +998,15 @@ def test_wpas_ctrl_global(dev): raise Exception("INTERFACE_ADD succeeded unexpectedly") if "FAIL" not in wpas.global_request("INTERFACE_ADD FOO "): raise Exception("INTERFACE_ADD succeeded unexpectedly") + +def test_wpas_ctrl_roam(dev, apdev): + """wpa_supplicant ctrl_iface ROAM error cases""" + if "FAIL" not in dev[0].request("ROAM 00:11:22:33:44"): + raise Exception("Unexpected success") + if "FAIL" not in dev[0].request("ROAM 00:11:22:33:44:55"): + raise Exception("Unexpected success") + params = { "ssid": "test" } + hostapd.add_ap(apdev[0]['ifname'], params) + id = dev[0].connect("test", key_mgmt="NONE", scan_freq="2412") + if "FAIL" not in dev[0].request("ROAM 00:11:22:33:44:55"): + raise Exception("Unexpected success")