]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: INTERFACE_ADD behavior on driver init failure
authorJouni Malinen <jouni@codeaurora.org>
Thu, 4 Feb 2021 22:27:22 +0000 (00:27 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 25 Mar 2021 22:21:18 +0000 (00:21 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_wpas_ctrl.py

index a99e2f49af834eff03b2d816ac358f2029ac26c2..1e4879874dba0fee1cfd046fec3fe04cacba55ee 100644 (file)
@@ -2147,3 +2147,11 @@ def test_wpas_ctrl_get_pref_freq_list_override(dev):
     dev[0].set("get_pref_freq_list_override", "")
     res = dev[0].request("GET_PREF_FREQ_LIST STATION").strip()
     logger.info("STATION (without override): " + res)
+
+def test_wpas_ctrl_interface_add_driver_init_failure(dev, apdev):
+    """wpa_supplicant INTERFACE_ADD and driver init failing"""
+    for i in range(1000):
+        res = dev[0].global_request("INTERFACE_ADD FOO")
+        if "FAIL" not in res:
+            raise Exception("Unexpected result: " + res)
+    dev[0].dump_monitor()