aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-14 16:43:13 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-14 16:43:30 (GMT)
commitf260ce4be866519d3c80c3f3fa6cfc0df9284779 (patch)
tree3066aa6bb55d527b16b9f8061468b741a04e952b /tests
parentb6317b417f5dfb16711ec1a7ab3600f77479fe20 (diff)
downloadhostap-f260ce4be866519d3c80c3f3fa6cfc0df9284779.zip
hostap-f260ce4be866519d3c80c3f3fa6cfc0df9284779.tar.gz
hostap-f260ce4be866519d3c80c3f3fa6cfc0df9284779.tar.bz2
tests: wpa_supplicant AP mode - WPS disabled
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_ap.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_ap.py b/tests/hwsim/test_wpas_ap.py
index e96a747..2cde2d5 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: