From b25e0fe5c0e4760cc6f1bee4e7bf7ca745753034 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 27 Dec 2016 17:17:43 +0200 Subject: [PATCH] tests: HS20_DEAUTH_REQ OOM Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_hs20.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index e8e0001f3..2e21ab432 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -2456,6 +2456,9 @@ def test_ap_hs20_deauth_req_without_pmf(dev, apdev): ev = dev[0].wait_event(["HS20-DEAUTH-IMMINENT-NOTICE"], timeout=0.2) if ev is not None: raise Exception("Deauth imminent notice without PMF accepted") + with alloc_fail(hapd, 1, "wpabuf_alloc;hostapd_ctrl_iface_hs20_deauth_req"): + if "FAIL" not in hapd.request("HS20_DEAUTH_REQ " + addr + " 1 120 http://example.com/"): + raise Exception("HS20_DEAUTH_REQ accepted during OOM") def test_ap_hs20_remediation_required(dev, apdev): """Hotspot 2.0 connection and remediation required from RADIUS"""