From 261dbf7341cbf19be7934335fc29ddd74e3dd529 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 7 Mar 2021 12:14:54 +0200 Subject: [PATCH] tests: hostapd GET_CAPABILITY Signed-off-by: Jouni Malinen --- tests/hwsim/test_hapd_ctrl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index 9dec65d5a..5c31dc3fb 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -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)