From: Jouni Malinen Date: Tue, 10 Oct 2017 17:59:09 +0000 (+0300) Subject: tests: sigma_dut controlled AP with OWE and transition mode X-Git-Tag: hostap_2_7~1046 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86fd7d70e810a8d1a7d3a037cd9411598e0baf5f;p=thirdparty%2Fhostap.git tests: sigma_dut controlled AP with OWE and transition mode Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index cefd318d2..b58a06322 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -700,3 +700,26 @@ def test_sigma_dut_ap_owe_ecgroupid(dev, apdev): sigma_dut_cmd_check("ap_reset_default") finally: stop_sigma_dut(sigma) + +def test_sigma_dut_ap_owe_transition_mode(dev, apdev, params): + """sigma_dut controlled AP with OWE and transition mode""" + if "OWE" not in dev[0].get_capability("key_mgmt"): + raise HwsimSkip("OWE not supported") + logdir = os.path.join(params['logdir'], + "sigma_dut_ap_owe_transition_mode.sigma-hostapd") + with HWSimRadio() as (radio, iface): + sigma = start_sigma_dut(iface, hostapd_logdir=logdir) + try: + sigma_dut_cmd_check("ap_reset_default,NAME,AP,Program,WPA3") + sigma_dut_cmd_check("ap_set_wireless,NAME,AP,WLAN_TAG,1,CHANNEL,1,SSID,owe,MODE,11ng") + sigma_dut_cmd_check("ap_set_security,NAME,AP,WLAN_TAG,1,KEYMGNT,OWE") + sigma_dut_cmd_check("ap_set_wireless,NAME,AP,WLAN_TAG,2,CHANNEL,1,SSID,owe,MODE,11ng") + sigma_dut_cmd_check("ap_set_security,NAME,AP,WLAN_TAG,2,KEYMGNT,NONE") + sigma_dut_cmd_check("ap_config_commit,NAME,AP") + + dev[0].connect("owe", key_mgmt="OWE", scan_freq="2412") + dev[1].connect("owe", key_mgmt="NONE", scan_freq="2412") + + sigma_dut_cmd_check("ap_reset_default") + finally: + stop_sigma_dut(sigma)