]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Additional coverage for WPS_AP_PIN error case
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 18:28:36 +0000 (20:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 20:31:58 +0000 (22:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 0ecf2961fe3ff3d33da107f9290965e25164fe95..7df8f985f0f949a5d3a1e98ed3e038f9b48857c0 100644 (file)
@@ -726,6 +726,8 @@ def test_ap_wps_random_ap_pin(dev, apdev):
         raise Exception("Invalid WPS_AP_PIN accepted")
     if "FAIL" not in hapd.request("WPS_AP_PIN foo"):
         raise Exception("Invalid WPS_AP_PIN accepted")
+    if "FAIL" not in hapd.request("WPS_AP_PIN set " + 9*'1'):
+        raise Exception("Invalid WPS_AP_PIN accepted")
 
 def test_ap_wps_reg_config(dev, apdev):
     """WPS registrar configuring an AP using AP PIN"""