]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: More hostapd SET command coverage
authorJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 17:59:03 +0000 (19:59 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 28 Dec 2016 12:31:42 +0000 (14:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_hapd_ctrl.py

index 69221cd1527e56293a12db4f80684119b8dfe244..5151783f7afffc6ad0edc817e17940d6dabba494 100644 (file)
@@ -713,3 +713,16 @@ def test_hapd_ctrl_not_yet_fully_enabled(dev, apdev):
              "STOP_AP" ]
     for cmd in cmds:
         hapd.request(cmd)
+
+def test_hapd_ctrl_set(dev, apdev):
+    """hostapd and SET ctrl_iface command"""
+    ssid = "hapd-ctrl"
+    params = { "ssid": ssid }
+    hapd = hostapd.add_ap(apdev[0], params)
+    tests = [ "foo",
+              "wps_version_number 300",
+              "gas_frag_limit 0",
+              "mbo_assoc_disallow 0" ]
+    for t in tests:
+        if "FAIL" not in hapd.request("SET " + t):
+            raise Exception("Invalid SET command accepted: " + t)