]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hostapd GET_CAPABILITY
authorJouni Malinen <j@w1.fi>
Sun, 7 Mar 2021 10:14:54 +0000 (12:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Mar 2021 10:14:54 +0000 (12:14 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_hapd_ctrl.py

index 9dec65d5a4335a0ddff6108cff7faf3e7aa71a2c..5c31dc3fb92fa14b9114fdf2899908046b7b78f7 100644 (file)
@@ -1028,3 +1028,13 @@ def test_hapd_ctrl_setband(dev, apdev):
     for val in vals:
         if "OK" not in hapd.request("SET setband " + val):
             raise Exception("SET setband %s failed" % val)
+
+def test_hapd_ctrl_get_capability(dev, apdev):
+    """hostapd GET_CAPABILITY"""
+    ssid = "hapd-ctrl"
+    params = {"ssid": ssid}
+    hapd = hostapd.add_ap(apdev[0], params)
+    if "FAIL" not in hapd.request("GET_CAPABILITY "):
+        raise Exception("Invalid GET_CAPABILITY accepted")
+    res = hapd.request("GET_CAPABILITY dpp")
+    logger.info("DPP capability: " + res)