net: app: Don't wait for DAD to finish when DAD is disabled

Signed-off-by: Kamil Sroka <kamil.sroka@nordicsemi.no>
This commit is contained in:
KaSroka 2017-09-29 12:02:51 +02:00 committed by Jukka Rissanen
parent 029780a196
commit 4d423f1c80
1 changed files with 5 additions and 0 deletions

View File

@ -243,6 +243,11 @@ static void setup_ipv6(struct net_if *iface, u32_t flags)
}
}
#if !defined(CONFIG_NET_IPV6_DAD)
k_sem_take(&counter, K_NO_WAIT);
k_sem_give(&waiter);
#endif
return;
}