3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

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.
This commit is contained in:
James Prestwood 2019-05-13 12:07:42 -07:00 committed by Denis Kenzior
parent 97ec50ce28
commit 7c7aafa812

View File

@ -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,