]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: key_mgmt values OWE and DPP
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 3 Jul 2017 11:33:58 +0000 (14:33 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 3 Jul 2017 11:33:58 +0000 (14:33 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
tests/hwsim/test_dpp.py
tests/hwsim/test_owe.py

index 3aa40cb0dd3dd3c3b3ce3b0b3aaee30eabe12c82..bbf37af1b7178a18d61d408c4d0fc3a56e6b33a5 100644 (file)
@@ -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"""
index 068f3bc9859afa9e6c1a5b2a92958de6e3b972c0..22c8c4ad0019f4a85530c18c4ac35ed349b02abc 100644 (file)
@@ -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"""