mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
t-runner: Add -i parameter into hostapd start cmd
This commit is contained in:
parent
311a6cf5b1
commit
6d0bef0bfb
@ -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)
|
static pid_t start_hostapd(const char *config_file, const char *interface_name)
|
||||||
{
|
{
|
||||||
char *argv[5];
|
char *argv[7];
|
||||||
char *ctrl_interface;
|
char *ctrl_interface;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
@ -639,8 +639,10 @@ static pid_t start_hostapd(const char *config_file, const char *interface_name)
|
|||||||
argv[0] = "hostapd";
|
argv[0] = "hostapd";
|
||||||
argv[1] = "-g";
|
argv[1] = "-g";
|
||||||
argv[2] = ctrl_interface;
|
argv[2] = ctrl_interface;
|
||||||
argv[3] = (char *) config_file;
|
argv[3] = "-i";
|
||||||
argv[4] = NULL;
|
argv[4] = (char *) interface_name;
|
||||||
|
argv[5] = (char *) config_file;
|
||||||
|
argv[6] = NULL;
|
||||||
|
|
||||||
pid = execute_program(argv, false);
|
pid = execute_program(argv, false);
|
||||||
if (pid < 0) {
|
if (pid < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user