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:
Jouni Malinen 2015-01-14 01:11:08 +02:00 committed by Jouni Malinen
parent e7d0e97bdb
commit 615d8a9705

View file

@ -1266,7 +1266,7 @@ def test_wpas_ctrl_vendor_elem(dev, apdev):
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" ]
@ -1275,14 +1275,14 @@ def test_wpas_ctrl_vendor_elem(dev, apdev):
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",
@ -1297,7 +1297,7 @@ def test_wpas_ctrl_vendor_elem(dev, apdev):
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",