From 15667cd1d474f3d81265d2e6d252894051b665dd Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 27 Dec 2016 20:28:23 +0200 Subject: [PATCH] tests: hostapd and EAPOL_REAUTH errors Signed-off-by: Jouni Malinen --- tests/hwsim/test_hapd_ctrl.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index 9e2ede099..e4f5c98d1 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -823,3 +823,14 @@ def test_hapd_ctrl_vendor_errors(dev, apdev): with alloc_fail(hapd, 1, "wpabuf_alloc;hostapd_ctrl_iface_vendor"): if "FAIL" not in hapd.request("VENDOR 10 10"): raise Exception("VENDOR accepted during OOM") + +def test_hapd_ctrl_eapol_reauth_errors(dev, apdev): + """hostapd and EAPOL_REAUTH errors""" + ssid = "hapd-ctrl" + params = { "ssid": ssid } + hapd = hostapd.add_ap(apdev[0], params) + tests = [ "foo", + "11:22:33:44:55:66" ] + for t in tests: + if "FAIL" not in hapd.request("EAPOL_REAUTH " + t): + raise Exception("Invalid EAPOL_REAUTH command accepted: " + t)