diff --git a/tests/hwsim/test_wpas_config.py b/tests/hwsim/test_wpas_config.py index 6bf62d0b7..d105fed0d 100644 --- a/tests/hwsim/test_wpas_config.py +++ b/tests/hwsim/test_wpas_config.py @@ -284,6 +284,8 @@ def test_wpas_config_file(dev, apdev, params): os.rmdir(config) except: pass + if not wpas.ifname: + wpas.interface_add("wlan5") wpas.dump_monitor() wpas.request("SET country 00") wpas.wait_event(["CTRL-EVENT-REGDOM-CHANGE"], timeout=1)