]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add room for more vendor elems in wpas_ctrl_vendor_elem
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 13 Jan 2015 23:11:08 +0000 (01:11 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Jan 2015 23:12:56 +0000 (01:12 +0200)
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>
tests/hwsim/test_wpas_ctrl.py

index 297e71a30e95073a23a563af2ea0b8d6ce52cff7..5d77aa676b92e882c2c8b0cfea6a4400beed37fb 100644 (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",