diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 3aa40cb0d..bbf37af1b 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 068f3bc98..22c8c4ad0 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"""