Skip to content

Commit 9503cc0

Browse files
committed
drivers: ethernet: sy1xx: fix random mac
before that commit, random mac was used even when defining zephyr,random-mac-address to false. Signed-off-by: Sven Ginka <s.ginka@sensry.de>
1 parent b15028e commit 9503cc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_sensry_sy1xx_mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ const struct ethernet_api sy1xx_mac_driver_api = {
571571
.base_addr = DT_INST_REG_ADDR_BY_NAME(n, data), \
572572
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
573573
.promiscuous_mode = DT_INST_PROP_OR(n, promiscuous_mode, false), \
574-
.use_zephyr_random_mac = DT_INST_NODE_HAS_PROP(n, zephyr_random_mac_address), \
574+
.use_zephyr_random_mac = DT_INST_PROP_OR(n, zephyr_random_mac_address, false), \
575575
.phy_dev = DEVICE_DT_GET(DT_INST_PHANDLE(0, phy_handle))}; \
576576
\
577577
static struct sy1xx_mac_dma_buffers __attribute__((section(".udma_access"))) \

0 commit comments

Comments
 (0)