From b854d3c85df86236c151acba48f6e73cabaaccb5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 12 Dec 2014 19:16:34 +0200 Subject: [PATCH] tests: EAPOL_RX failure cases Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 1a3edb52f..c5cadb3e5 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -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)