mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #1957 from OlegHahm/auto_init_addr_mode
auto_init: always set source address mode
This commit is contained in:
commit
85db24b43d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user