From: Jouni Malinen Date: Tue, 13 Jan 2015 23:11:08 +0000 (+0200) Subject: tests: Add room for more vendor elems in wpas_ctrl_vendor_elem X-Git-Tag: hostap_2_4~419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=615d8a9705559caaa23b327c941d64c03a2b74a6;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 297e71a30..5d77aa676 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -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",