From d1341917ceabf5521e61ed98548bc1ef5b17aed6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 5 Dec 2015 21:35:45 +0200 Subject: [PATCH] tests: WPS and fragment ack OOM Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_wps.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 455a2f29c..9a6252182 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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)