From 20c18348e01592b237134f01c65097e41a432fa5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 18 Nov 2017 17:48:27 +0200 Subject: [PATCH] tests: sigma_dut controlled AP and PSKHEX Signed-off-by: Jouni Malinen --- tests/hwsim/test_sigma_dut.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index a13719e95..0096b2424 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -362,6 +362,25 @@ def test_sigma_dut_ap_psk(dev, apdev): finally: stop_sigma_dut(sigma) +def test_sigma_dut_ap_pskhex(dev, apdev, params): + """sigma_dut controlled AP and PSKHEX""" + logdir = os.path.join(params['logdir'], + "sigma_dut_ap_pskhex.sigma-hostapd") + with HWSimRadio() as (radio, iface): + sigma = start_sigma_dut(iface, hostapd_logdir=logdir) + try: + psk = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" + sigma_dut_cmd_check("ap_reset_default") + sigma_dut_cmd_check("ap_set_wireless,NAME,AP,CHANNEL,1,SSID,test-psk,MODE,11ng") + sigma_dut_cmd_check("ap_set_security,NAME,AP,KEYMGNT,WPA2-PSK,PSKHEX," + psk) + sigma_dut_cmd_check("ap_config_commit,NAME,AP") + + dev[0].connect("test-psk", raw_psk=psk, scan_freq="2412") + + sigma_dut_cmd_check("ap_reset_default") + finally: + stop_sigma_dut(sigma) + def test_sigma_dut_suite_b(dev, apdev, params): """sigma_dut controlled STA Suite B""" check_suite_b_192_capa(dev)