aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-07-03 11:33:58 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-03 11:33:58 (GMT)
commit0f842044ee41d535f20d55d4f4d979ab635c7fad (patch)
tree5c13c1cde534debea215335a0911bcfc6d549fb4 /tests
parent8885023252609c5b6e868bdf18fd52171a3fd47c (diff)
downloadhostap-0f842044ee41d535f20d55d4f4d979ab635c7fad.zip
hostap-0f842044ee41d535f20d55d4f4d979ab635c7fad.tar.gz
hostap-0f842044ee41d535f20d55d4f4d979ab635c7fad.tar.bz2
tests: key_mgmt values OWE and DPP
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dpp.py6
-rw-r--r--tests/hwsim/test_owe.py3
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py
index 3aa40cb..bbf37af 100644
--- a/tests/hwsim/test_dpp.py
+++ b/tests/hwsim/test_dpp.py
@@ -758,6 +758,9 @@ def run_dpp_akm(dev, apdev, pmk_len):
dev[0].select_network(id, freq="2412")
dev[0].wait_connected()
+ val = dev[0].get_status_field("key_mgmt")
+ if val != "DPP":
+ raise Exception("Unexpected key_mgmt: " + val)
def test_dpp_network_introduction(dev, apdev):
"""DPP network introduction"""
@@ -786,6 +789,9 @@ def test_dpp_network_introduction(dev, apdev):
dpp_csign=csign,
dpp_connector=sta_connector,
dpp_netaccesskey=sta_netaccesskey)
+ val = dev[0].get_status_field("key_mgmt")
+ if val != "DPP":
+ raise Exception("Unexpected key_mgmt: " + val)
def test_dpp_ap_config(dev, apdev):
"""DPP and AP configuration"""
diff --git a/tests/hwsim/test_owe.py b/tests/hwsim/test_owe.py
index 068f3bc..22c8c4a 100644
--- a/tests/hwsim/test_owe.py
+++ b/tests/hwsim/test_owe.py
@@ -26,6 +26,9 @@ def test_owe(dev, apdev):
dev[0].connect("owe", key_mgmt="OWE")
hwsim_utils.test_connectivity(dev[0], hapd)
+ val = dev[0].get_status_field("key_mgmt")
+ if val != "OWE":
+ raise Exception("Unexpected key_mgmt: " + val)
def test_owe_and_psk(dev, apdev):
"""Opportunistic Wireless Encryption and WPA2-PSK enabled"""