tests: Invalid VENDOR command
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c2bf6d3afc
commit
9c1be553c8
1 changed files with 11 additions and 0 deletions
|
@ -1124,3 +1124,14 @@ def test_wpas_ctrl_rsp(dev, apdev):
|
||||||
raise Exception("Request failed unexpectedly")
|
raise Exception("Request failed unexpectedly")
|
||||||
if "OK" not in dev[0].request("CTRL-RSP-%s-%d:" % (req, id)):
|
if "OK" not in dev[0].request("CTRL-RSP-%s-%d:" % (req, id)):
|
||||||
raise Exception("Request failed unexpectedly")
|
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)
|
||||||
|
|
Loading…
Reference in a new issue