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>
if "OK" not in dev[0].request("VENDOR_ELEM_ADD 1 "):
raise Exception("VENDOR_ELEM_ADD failed")
cmds = [ "-1 ",
- "13 ",
+ "255 ",
"1",
"1 123",
"1 12qq34" ]
raise Exception("Invalid VENDOR_ELEM_ADD command accepted: " + cmd)
cmds = [ "-1 ",
- "13 " ]
+ "255 " ]
for cmd in cmds:
if "FAIL" not in dev[0].request("VENDOR_ELEM_GET " + cmd):
raise Exception("Invalid VENDOR_ELEM_GET command accepted: " + cmd)
dev[0].request("VENDOR_ELEM_REMOVE 1 *")
cmds = [ "-1 ",
- "13 ",
+ "255 ",
"1",
"1",
"1 123",
if "OK" not in dev[0].request("VENDOR_ELEM_REMOVE 1 "):
raise Exception("VENDOR_ELEM_REMOVE failed")
cmds = [ "-1 ",
- "13 ",
+ "255 ",
"1",
"1 123",
"1 12qq34",