From: Jouni Malinen Date: Sun, 26 Jul 2015 09:09:08 +0000 (+0300) Subject: tests: FST attach errors in wpa_supplicant X-Git-Tag: hostap_2_5~305 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5994658309b0d92b007c7b0b84dcb71ec2fb05c7;p=thirdparty%2Fhostap.git tests: FST attach errors in wpa_supplicant Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_fst_module.py b/tests/hwsim/test_fst_module.py index f0c947ab6..fdd4e2f54 100644 --- a/tests/hwsim/test_fst_module.py +++ b/tests/hwsim/test_fst_module.py @@ -2703,3 +2703,16 @@ def _test_fst_many_setup(dev, apdev, test_params): fst_detach_sta(wpas, wpas.ifname, sgroup) fst_detach_sta(wpas, wpas2.ifname, sgroup) + +def test_fst_attach_wpas_error(dev, apdev, test_params): + """FST attach errors in wpa_supplicant""" + group = "fstg0" + wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5') + wpas.interface_add("wlan5") + fst_attach_sta(wpas, wpas.ifname, group) + if "FAIL" not in wpas.global_request("FST-ATTACH %s %s" % (wpas.ifname, + group)): + raise Exception("Duplicated FST-ATTACH accepted") + if "FAIL" not in wpas.global_request("FST-ATTACH %s %s" % ("foofoo", + group)): + raise Exception("FST-ATTACH for unknown interface accepted")