From 3b8f9ba176267f59a637831bababf59c093b6a68 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 14 Mar 2017 00:51:22 +0100 Subject: [PATCH] test-runner: Register hwsim medium on startup Actually run hwsim in the daemon mode to work as the wireless medium now that hwsim supports it. The current test-runner code, which assumed a different command line syntax, wasn't functional but it didn't affect test-runner in any way. --- tools/test-runner.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/test-runner.c b/tools/test-runner.c index 29da8ccd..cc032f29 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -622,11 +622,10 @@ static bool destroy_hwsim_radio(int radio_id) static pid_t register_hwsim_as_trans_medium(void) { - char *argv[3]; + char *argv[2]; argv[0] = BIN_HWSIM; - argv[1] = "--register"; - argv[2] = NULL; + argv[1] = NULL; return execute_program(argv, false); }