tests: Add room for more vendor elems in wpas_ctrl_vendor_elem
This test case was verifying that the first unused VENDOR_ELEM value above the current maximum is rejected. That makes it a bit inconvenient to add new entries, so increase the elem value to leave room for new additions without having to continuously modify this test case. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
e7d0e97bdb
commit
615d8a9705
1 changed files with 4 additions and 4 deletions
|
@ -1266,7 +1266,7 @@ def test_wpas_ctrl_vendor_elem(dev, apdev):
|
||||||
if "OK" not in dev[0].request("VENDOR_ELEM_ADD 1 "):
|
if "OK" not in dev[0].request("VENDOR_ELEM_ADD 1 "):
|
||||||
raise Exception("VENDOR_ELEM_ADD failed")
|
raise Exception("VENDOR_ELEM_ADD failed")
|
||||||
cmds = [ "-1 ",
|
cmds = [ "-1 ",
|
||||||
"13 ",
|
"255 ",
|
||||||
"1",
|
"1",
|
||||||
"1 123",
|
"1 123",
|
||||||
"1 12qq34" ]
|
"1 12qq34" ]
|
||||||
|
@ -1275,14 +1275,14 @@ def test_wpas_ctrl_vendor_elem(dev, apdev):
|
||||||
raise Exception("Invalid VENDOR_ELEM_ADD command accepted: " + cmd)
|
raise Exception("Invalid VENDOR_ELEM_ADD command accepted: " + cmd)
|
||||||
|
|
||||||
cmds = [ "-1 ",
|
cmds = [ "-1 ",
|
||||||
"13 " ]
|
"255 " ]
|
||||||
for cmd in cmds:
|
for cmd in cmds:
|
||||||
if "FAIL" not in dev[0].request("VENDOR_ELEM_GET " + cmd):
|
if "FAIL" not in dev[0].request("VENDOR_ELEM_GET " + cmd):
|
||||||
raise Exception("Invalid VENDOR_ELEM_GET command accepted: " + cmd)
|
raise Exception("Invalid VENDOR_ELEM_GET command accepted: " + cmd)
|
||||||
|
|
||||||
dev[0].request("VENDOR_ELEM_REMOVE 1 *")
|
dev[0].request("VENDOR_ELEM_REMOVE 1 *")
|
||||||
cmds = [ "-1 ",
|
cmds = [ "-1 ",
|
||||||
"13 ",
|
"255 ",
|
||||||
"1",
|
"1",
|
||||||
"1",
|
"1",
|
||||||
"1 123",
|
"1 123",
|
||||||
|
@ -1297,7 +1297,7 @@ def test_wpas_ctrl_vendor_elem(dev, apdev):
|
||||||
if "OK" not in dev[0].request("VENDOR_ELEM_REMOVE 1 "):
|
if "OK" not in dev[0].request("VENDOR_ELEM_REMOVE 1 "):
|
||||||
raise Exception("VENDOR_ELEM_REMOVE failed")
|
raise Exception("VENDOR_ELEM_REMOVE failed")
|
||||||
cmds = [ "-1 ",
|
cmds = [ "-1 ",
|
||||||
"13 ",
|
"255 ",
|
||||||
"1",
|
"1",
|
||||||
"1 123",
|
"1 123",
|
||||||
"1 12qq34",
|
"1 12qq34",
|
||||||
|
|
Loading…
Reference in a new issue