3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

t-runner: Add -i parameter into hostapd start cmd

This commit is contained in:
Tim Kourt 2016-06-14 16:48:57 -07:00 committed by Denis Kenzior
parent 311a6cf5b1
commit 6d0bef0bfb

View File

@ -629,7 +629,7 @@ static bool destroy_hwsim_radio(int radio_id)
static pid_t start_hostapd(const char *config_file, const char *interface_name)
{
char *argv[5];
char *argv[7];
char *ctrl_interface;
pid_t pid;
@ -639,8 +639,10 @@ static pid_t start_hostapd(const char *config_file, const char *interface_name)
argv[0] = "hostapd";
argv[1] = "-g";
argv[2] = ctrl_interface;
argv[3] = (char *) config_file;
argv[4] = NULL;
argv[3] = "-i";
argv[4] = (char *) interface_name;
argv[5] = (char *) config_file;
argv[6] = NULL;
pid = execute_program(argv, false);
if (pid < 0) {