Skip to content

Commit e9cfa0e

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 ab02fdf commit e9cfa0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/ethernet/eth_sensry_sy1xx_mac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ static int sy1xx_mac_start(const struct device *dev)
208208
sys_rand_get(&data->mac_addr, 6);
209209
/* Set MAC address locally administered, unicast (LAA) */
210210
data->mac_addr[0] |= 0x02;
211-
212211
}
213212

214213
sy1xx_mac_set_mac_addr(dev);
@@ -571,7 +570,7 @@ const struct ethernet_api sy1xx_mac_driver_api = {
571570
.base_addr = DT_INST_REG_ADDR_BY_NAME(n, data), \
572571
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
573572
.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), \
573+
.use_zephyr_random_mac = DT_INST_PROP(n, zephyr_random_mac_address), \
575574
.phy_dev = DEVICE_DT_GET(DT_INST_PHANDLE(0, phy_handle))}; \
576575
\
577576
static struct sy1xx_mac_dma_buffers __attribute__((section(".udma_access"))) \

0 commit comments

Comments
 (0)