aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 15:28:15 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 15:28:15 (GMT)
commit35320d7a44f7e6bff9bf676d9055d54dfcfc2005 (patch)
tree80816674c9036102e1c5b1c2c59087de3d2c2b9b /tests
parent3381d324c99790894dd6c1c06618f25d63231257 (diff)
downloadhostap-35320d7a44f7e6bff9bf676d9055d54dfcfc2005.zip
hostap-35320d7a44f7e6bff9bf676d9055d54dfcfc2005.tar.gz
hostap-35320d7a44f7e6bff9bf676d9055d54dfcfc2005.tar.bz2
tests: WPS_PIN start failure
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_wps.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py
index 35bf27c..79db6e6 100644
--- a/tests/hwsim/test_ap_wps.py
+++ b/tests/hwsim/test_ap_wps.py
@@ -9895,3 +9895,12 @@ def test_ap_wps_pbc_in_m1(dev, apdev):
hapd.disable()
dev[0].dump_monitor()
dev[0].flush_scan_cache()
+
+def test_ap_wps_pin_start_failure(dev, apdev):
+ """WPS_PIN start failure"""
+ with alloc_fail(dev[0], 1, "wpas_wps_start_dev_pw"):
+ if "FAIL" not in dev[0].request("WPS_PIN any 12345670"):
+ raise Exception("WPS_PIN not rejected during OOM")
+ with alloc_fail(dev[0], 1, "wpas_wps_start_dev_pw"):
+ if "FAIL" not in dev[0].request("WPS_PIN any"):
+ raise Exception("WPS_PIN not rejected during OOM")