]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Invalid VENDOR command
authorJouni Malinen <j@w1.fi>
Thu, 11 Dec 2014 22:10:52 +0000 (00:10 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 11 Dec 2014 22:10:52 +0000 (00:10 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index 2a446fe9d498a5c269c771a949db191ba380a15c..655dd1e96b6b78e48937fcde6cd9e26fe3a8998c 100644 (file)
@@ -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)