mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
JN516x: Call LLSEC.init instead of LLSEC.bootstrap
This commit is contained in:
parent
bfeff0488d
commit
c865982df5
@ -228,17 +228,6 @@ start_uip6(void)
|
|||||||
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
start_network_layer(void)
|
|
||||||
{
|
|
||||||
#if NETSTACK_CONF_WITH_IPV6
|
|
||||||
start_uip6();
|
|
||||||
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
|
||||||
start_autostart_processes();
|
|
||||||
/* To support link layer security in combination with NETSTACK_CONF_WITH_IPV4 and
|
|
||||||
* TIMESYNCH_CONF_ENABLED further things may need to be moved here */
|
|
||||||
}
|
|
||||||
/*--------------------------------------------------------------------------*/
|
|
||||||
static void
|
|
||||||
set_linkaddr(void)
|
set_linkaddr(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -409,7 +398,12 @@ main(void)
|
|||||||
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
#endif /* NETSTACK_CONF_WITH_IPV4 */
|
||||||
|
|
||||||
watchdog_start();
|
watchdog_start();
|
||||||
NETSTACK_LLSEC.bootstrap(start_network_layer);
|
NETSTACK_LLSEC.init();
|
||||||
|
|
||||||
|
#if NETSTACK_CONF_WITH_IPV6
|
||||||
|
start_uip6();
|
||||||
|
#endif /* NETSTACK_CONF_WITH_IPV6 */
|
||||||
|
start_autostart_processes();
|
||||||
|
|
||||||
leds_off(LEDS_ALL);
|
leds_off(LEDS_ALL);
|
||||||
int r;
|
int r;
|
||||||
|
Loading…
Reference in New Issue
Block a user