t-runner: Add params into hwsim create action

This commit is contained in:
Tim Kourt 2016-05-17 14:41:39 -07:00 committed by Denis Kenzior
parent 9536c27d35
commit 5e6912afd6
1 changed files with 3 additions and 2 deletions

View File

@ -550,7 +550,7 @@ static int create_hwsim_radio(const char *radio_name,
const unsigned int channels, bool p2p_device,
bool use_chanctx)
{
char *argv[6];
char *argv[7];
pid_t pid;
if (chdir(exec_home + 5) < 0) {
@ -565,7 +565,8 @@ static int create_hwsim_radio(const char *radio_name,
argv[2] = "--keep";
argv[3] = "--name";
argv[4] = (char *) radio_name;
argv[5] = NULL;
argv[5] = "--nointerface";
argv[6] = NULL;
pid = execute_program(argv, true);
if (pid < 0)