diff --git a/sys/auto_init/auto_init.c b/sys/auto_init/auto_init.c index 218e2c314e62be550184126a60530e292ee8fded..e4272b8be87762ac6a0fd9c6ce27a41aa923f94f 100644 --- a/sys/auto_init/auto_init.c +++ b/sys/auto_init/auto_init.c @@ -163,6 +163,14 @@ void auto_init_net_if(void) DEBUG("Auto init radio address on interface %d to 0x%04x\n", iface, hwaddr); #else /* CPUID_ID_LEN && defined(MODULE_HASHES) */ + if (!net_if_get_hardware_address(iface)) { + DEBUG("Auto init radio address on interface %d to 0x%04x\n", iface, CONF_RADIO_ADDR); + DEBUG("Change this value at compile time with macro CONF_RADIO_ADDR\n"); + net_if_set_hardware_address(iface, CONF_RADIO_ADDR); + } + +#endif /* CPUID_ID_LEN && defined(MODULE_HASHES) */ + if (net_if_set_src_address_mode(iface, NET_IF_TRANS_ADDR_M_SHORT)) { DEBUG("Auto init source address mode to short on interface %d\n", iface); @@ -173,13 +181,6 @@ void auto_init_net_if(void) iface); } - if (!net_if_get_hardware_address(iface)) { - DEBUG("Auto init radio address on interface %d to 0x%04x\n", iface, CONF_RADIO_ADDR); - DEBUG("Change this value at compile time with macro CONF_RADIO_ADDR\n"); - net_if_set_hardware_address(iface, CONF_RADIO_ADDR); - } - -#endif /* CPUID_ID_LEN && defined(MODULE_HASHES) */ if (net_if_get_pan_id(iface) <= 0) { DEBUG("Auto init PAN ID on interface %d to 0x%04x\n", iface, CONF_PAN_ID);