]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPS_PIN start failure
authorJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 15:28:15 +0000 (17:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 8 Jan 2017 15:28:15 +0000 (17:28 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 35bf27cc2b6c4d2f36fe4f41ce869ee88046f693..79db6e642b5aa77d0efe311149125d65cbf04523 100644 (file)
@@ -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")