]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hostapd and EAPOL_REAUTH errors
authorJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 18:28:23 +0000 (20:28 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 28 Dec 2016 12:31:42 +0000 (14:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_hapd_ctrl.py

index 9e2ede0995d0e71ae14415c7036b16bbdf394ecd..e4f5c98d1a32424c2786f564687288e3f39a8bcb 100644 (file)
@@ -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)