]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPS and fragment ack OOM
authorJouni Malinen <j@w1.fi>
Sat, 5 Dec 2015 19:35:45 +0000 (21:35 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 5 Dec 2015 19:35:45 +0000 (21:35 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 455a2f29cbe7cfe288166a9eb5c80831809c2030..9a625218297cca097d4e65f097d335987ccafc93 100644 (file)
@@ -9238,3 +9238,10 @@ def test_ap_wps_upnp_web_oom(dev, apdev, params):
             resp = conn.getresponse()
         except:
             pass
+
+def test_ap_wps_frag_ack_oom(dev, apdev):
+    """WPS and fragment ack OOM"""
+    dev[0].request("SET wps_fragment_size 50")
+    hapd = wps_start_ap(apdev[0])
+    with alloc_fail(hapd, 1, "eap_wsc_build_frag_ack"):
+        wps_run_pbc_fail_ap(apdev[0], dev[0], hapd)