From: Jouni Malinen Date: Thu, 11 Dec 2014 22:10:52 +0000 (+0200) Subject: tests: Invalid VENDOR command X-Git-Tag: hostap_2_4~821 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c1be553c82bb10595ae38c03f5ca789ea5dbbec;p=thirdparty%2Fhostap.git tests: Invalid VENDOR command Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 2a446fe9d..655dd1e96 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -1124,3 +1124,14 @@ def test_wpas_ctrl_rsp(dev, apdev): raise Exception("Request failed unexpectedly") if "OK" not in dev[0].request("CTRL-RSP-%s-%d:" % (req, id)): raise Exception("Request failed unexpectedly") + +def test_wpas_ctrl_vendor(dev, apdev): + """wpa_supplicant ctrl_iface VENDOR""" + cmds = [ "foo", + "1", + "1 foo", + "1 2foo", + "1 2 qq" ] + for cmd in cmds: + if "FAIL" not in dev[0].request("VENDOR " + cmd): + raise Exception("Invalid VENDOR command accepted: " + cmd)