commit 7c7aafa812aec3d9f60ed6353c2424a656c21022
parent 97ec50ce2848337a73ea21ab96eb8e963ae3504b
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Mon, 13 May 2019 12:07:42 -0700
test-runner: skip hostapd iface creation if native HW
In native hardware mode the interfaces already exist, so there is
no need for hostapd to create new ones.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/tools/test-runner.c b/tools/test-runner.c
@@ -1322,6 +1322,9 @@ static bool configure_hostapd_instances(struct l_settings *hw_settings,
goto done;
}
+ if (native_hw)
+ goto hostapd_done;
+
wiphys[i]->interface_name = l_strdup_printf("%s%d",
HW_INTERFACE_PREFIX,
wiphy_idx);
@@ -1344,6 +1347,7 @@ static bool configure_hostapd_instances(struct l_settings *hw_settings,
goto done;
}
+hostapd_done:
wiphys[i]->used_by_hostapd = true;
wiphys[i]->hostapd_ctrl_interface =
l_strdup_printf("%s/%s", HOSTAPD_CTRL_INTERFACE_PREFIX,