mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
t-runner: Add params into hwsim create action
This commit is contained in:
parent
9536c27d35
commit
5e6912afd6
@ -550,7 +550,7 @@ static int create_hwsim_radio(const char *radio_name,
|
|||||||
const unsigned int channels, bool p2p_device,
|
const unsigned int channels, bool p2p_device,
|
||||||
bool use_chanctx)
|
bool use_chanctx)
|
||||||
{
|
{
|
||||||
char *argv[6];
|
char *argv[7];
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
if (chdir(exec_home + 5) < 0) {
|
if (chdir(exec_home + 5) < 0) {
|
||||||
@ -565,7 +565,8 @@ static int create_hwsim_radio(const char *radio_name,
|
|||||||
argv[2] = "--keep";
|
argv[2] = "--keep";
|
||||||
argv[3] = "--name";
|
argv[3] = "--name";
|
||||||
argv[4] = (char *) radio_name;
|
argv[4] = (char *) radio_name;
|
||||||
argv[5] = NULL;
|
argv[5] = "--nointerface";
|
||||||
|
argv[6] = NULL;
|
||||||
|
|
||||||
pid = execute_program(argv, true);
|
pid = execute_program(argv, true);
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user