tests: INTERFACE_ADD behavior on driver init failure

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2021-02-05 00:27:22 +02:00 committed by Jouni Malinen
parent 8ca330bd70
commit 1a47e2ff8f

View file

@ -2147,3 +2147,11 @@ def test_wpas_ctrl_get_pref_freq_list_override(dev):
dev[0].set("get_pref_freq_list_override", "") dev[0].set("get_pref_freq_list_override", "")
res = dev[0].request("GET_PREF_FREQ_LIST STATION").strip() res = dev[0].request("GET_PREF_FREQ_LIST STATION").strip()
logger.info("STATION (without override): " + res) 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()