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.
This commit is contained in:
Andrew Zaborowski 2017-03-14 00:51:22 +01:00 committed by Denis Kenzior
parent 2411d24c87
commit 3b8f9ba176
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}