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

index 9b3e04cede1591747eb4f661c9ce4794f267c4d1..1a3edb52f014c37f13410d227bd20cc771cc7c07 100644 (file)
@@ -1149,3 +1149,8 @@ def test_wpas_ctrl_mgmt_tx(dev, apdev):
 
     if "OK" not in dev[0].request("MGMT_TX_DONE"):
         raise Exception("MGMT_TX_DONE failed")
+
+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")