]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: EAPOL_RX failure cases
authorJouni Malinen <j@w1.fi>
Fri, 12 Dec 2014 17:16:34 +0000 (19:16 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 12 Dec 2014 17:16:34 +0000 (19:16 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index 1a3edb52f014c37f13410d227bd20cc771cc7c07..c5cadb3e5bbfc1b62de7b372968a065bc0544bf8 100644 (file)
@@ -1154,3 +1154,12 @@ def test_wpas_ctrl_driver_event(dev, apdev):
     """wpa_supplicant ctrl_iface DRIVER_EVENT"""
     if "FAIL" not in dev[0].request("DRIVER_EVENT foo"):
         raise Exception("Invalid DRIVER_EVENT accepted")
+
+def test_wpas_ctrl_eapol_rx(dev, apdev):
+    """wpa_supplicant ctrl_iface EAPOL_RX"""
+    cmds = [ "foo",
+             "00:11:22:33:44:55 123",
+             "00:11:22:33:44:55 12qq" ]
+    for cmd in cmds:
+        if "FAIL" not in dev[0].request("EAPOL_RX " + cmd):
+            raise Exception("Invalid EAPOL_RX command accepted: " + cmd)