From f260ce4be866519d3c80c3f3fa6cfc0df9284779 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 14 May 2016 19:43:13 +0300 Subject: [PATCH] tests: wpa_supplicant AP mode - WPS disabled Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ap.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/hwsim/test_wpas_ap.py b/tests/hwsim/test_wpas_ap.py index e96a7477a..2cde2d592 100644 --- a/tests/hwsim/test_wpas_ap.py +++ b/tests/hwsim/test_wpas_ap.py @@ -277,6 +277,22 @@ def test_wpas_ap_wps_pbc_overlap(dev): dev[1].request("WPS_CANCEL") dev[2].request("WPS_CANCEL") +def test_wpas_ap_wps_disabled(dev): + """wpa_supplicant AP mode - WPS disabled""" + id = dev[0].add_network() + dev[0].set_network(id, "mode", "2") + dev[0].set_network_quoted(id, "ssid", "wpas-ap-no-wps") + dev[0].set_network_quoted(id, "psk", "12345678") + dev[0].set_network(id, "frequency", "2412") + dev[0].set_network(id, "scan_freq", "2412") + dev[0].set_network(id, "wps_disabled", "1") + dev[0].select_network(id) + wait_ap_ready(dev[0]) + + dev[1].connect("wpas-ap-no-wps", psk="12345678", scan_freq="2412") + dev[1].request("DISCONNECT") + dev[1].wait_disconnected() + def test_wpas_ap_dfs(dev): """wpa_supplicant AP mode - DFS""" try: