Skip to content

Commit 4b6ccbd

Browse files
maass-hamburgkartben
authored andcommitted
drivers: ethernet: xmc4xxx: random mac only on dt
only set a random mac if zephyr,random-mac-address is set in dt. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent 5638d9f commit 4b6ccbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_xmc4xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ static int eth_xmc4xxx_init(const struct device *dev)
866866

867867
eth_xmc4xxx_mask_unused_interrupts(dev_cfg->regs);
868868

869-
#if !DT_INST_NODE_HAS_PROP(0, local_mac_address)
869+
#if DT_INST_PROP(0, zephyr_random_mac_address)
870870
gen_random_mac(dev_data->mac_addr, INFINEON_OUI_B0, INFINEON_OUI_B1, INFINEON_OUI_B2);
871871
#endif
872872
eth_xmc4xxx_set_mac_address(dev_cfg->regs, dev_data->mac_addr);

0 commit comments

Comments
 (0)