aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-12-27 19:07:05 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-27 19:07:05 (GMT)
commitadafbe9e2ef629c7f70b54e55ce8c38591005841 (patch)
treeb175631deddb6e33a06573f40233b2f0135dd95e
parent2cb40e9f402c82815ea1f685ceb9816106fda445 (diff)
downloadhostap-adafbe9e2ef629c7f70b54e55ce8c38591005841.zip
hostap-adafbe9e2ef629c7f70b54e55ce8c38591005841.tar.gz
hostap-adafbe9e2ef629c7f70b54e55ce8c38591005841.tar.bz2
tests: Opportunistic Wireless Encryption and group negotiation
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_owe.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/hwsim/test_owe.py b/tests/hwsim/test_owe.py
index 548134f..9506ca5 100644
--- a/tests/hwsim/test_owe.py
+++ b/tests/hwsim/test_owe.py
@@ -297,3 +297,27 @@ def test_owe_limited_group_set(dev, apdev):
dev[0].request("REMOVE_NETWORK all")
dev[0].wait_disconnected()
dev[0].dump_monitor()
+
+def test_owe_group_negotiation(dev, apdev):
+ """Opportunistic Wireless Encryption and group negotiation"""
+ run_owe_group_negotiation(dev[0], apdev)
+
+def test_owe_group_negotiation_connect_cmd(dev, apdev):
+ """Opportunistic Wireless Encryption and group negotiation (connect command)"""
+ wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
+ wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
+ run_owe_group_negotiation(wpas, apdev)
+
+def run_owe_group_negotiation(dev, apdev):
+ if "OWE" not in dev.get_capability("key_mgmt"):
+ raise HwsimSkip("OWE not supported")
+ params = { "ssid": "owe",
+ "wpa": "2",
+ "wpa_key_mgmt": "OWE",
+ "rsn_pairwise": "CCMP",
+ "owe_groups": "21" }
+ hapd = hostapd.add_ap(apdev[0], params)
+ bssid = hapd.own_addr()
+
+ dev.scan_for_bss(bssid, freq="2412")
+ dev.connect("owe", key_mgmt="OWE")