diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index 1e4ccb952..8bd16f80e 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -382,7 +382,7 @@ def main(): logger.info(e) result = "FAIL" try: - wpas = WpaSupplicant("wlan5", "/tmp/wpas-wlan5") + wpas = WpaSupplicant("/tmp/wpas-wlan5") d.dump_monitor() rename_log(args.logdir, 'log5', name, wpas) if not args.no_reset: diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 7734f2ab6..5cacfa10e 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -834,7 +834,7 @@ class WpaSupplicant: raise Exception("Association with the AP timed out") def relog(self): - self.request("RELOG") + self.global_request("RELOG") def wait_completed(self, timeout=10): for i in range(0, timeout * 2): diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 56a05a7af..381414923 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -7739,6 +7739,9 @@ char * wpa_supplicant_global_ctrl_iface_process(struct wpa_global *global, if (wpas_module_tests() < 0) reply_len = -1; #endif /* CONFIG_MODULE_TESTS */ + } else if (os_strncmp(buf, "RELOG", 5) == 0) { + if (wpa_debug_reopen_file() < 0) + reply_len = -1; } else { os_memcpy(reply, "UNKNOWN COMMAND\n", 16); reply_len = 16;