From 1c96988bc27a77143dd217c32d815f2e17c5af69 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 1 Jul 2016 21:16:20 +0300 Subject: [PATCH] tests: IBSS and key_mgmt field in STATUS Signed-off-by: Jouni Malinen --- tests/hwsim/test_ibss.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/hwsim/test_ibss.py b/tests/hwsim/test_ibss.py index e89ba4fd6..2095ebc57 100644 --- a/tests/hwsim/test_ibss.py +++ b/tests/hwsim/test_ibss.py @@ -144,6 +144,10 @@ def test_ibss_rsn(dev): if "OK" not in dev[0].request("IBSS_RSN " + dev[1].p2p_interface_addr()): raise Exception("IBSS_RSN command failed") + key_mgmt = dev[0].get_status_field("key_mgmt") + if key_mgmt != "WPA2-PSK": + raise Exception("Unexpected STATUS key_mgmt: " + key_mgmt) + def test_ibss_wpa_none(dev): """IBSS WPA-None""" ssid="ibss-wpa-none" @@ -208,6 +212,10 @@ def test_ibss_wpa_none(dev): except Exception, e: logger.info("Ignoring known connectivity failure: " + str(e)) + key_mgmt = dev[0].get_status_field("key_mgmt") + if key_mgmt != "WPA-NONE": + raise Exception("Unexpected STATUS key_mgmt: " + key_mgmt) + def test_ibss_wpa_none_ccmp(dev): """IBSS WPA-None/CCMP""" ssid="ibss-wpa-none" @@ -280,6 +288,10 @@ def test_ibss_open(dev): if freq0 != "2412" or freq1 != "2412": raise Exception("IBSS operating frequency not reported correctly (%s %s)" % (freq0, freq1)) + key_mgmt = dev[0].get_status_field("key_mgmt") + if key_mgmt != "NONE": + raise Exception("Unexpected STATUS key_mgmt: " + key_mgmt) + def test_ibss_open_fixed_bssid(dev): """IBSS open (no security) and fixed BSSID""" ssid="ibss"