1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys: net: gnrc: uhcpc: only start if multiple interfaces found

This commit is contained in:
Kaspar Schleiser 2016-04-04 15:12:44 +02:00
parent 334481559d
commit 228d642abe

View File

@ -131,6 +131,12 @@ void auto_init_gnrc_uhcpc(void)
{
set_interface_roles();
/* only start client if more than one interface is given */
if (! (gnrc_border_interface && gnrc_wireless_interface)) {
LOG_WARNING("uhcpc: only one interface found, skipping setup.\n");
return;
}
/* initiate uhcp client */
thread_create(_uhcp_client_stack, sizeof(_uhcp_client_stack),
THREAD_PRIORITY_MAIN - 1, THREAD_CREATE_STACKTEST,