Skip to content

Commit f1b4c7c

Browse files
pdgendtkartben
authored andcommitted
drivers: ethernet: nxp_imx_netc: Fix LAA bit location
The Locally Administered Address (LAA) bit should be set on the first octet of the MAC address. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 7ec00e9 commit f1b4c7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/ethernet/nxp_imx_netc/eth_nxp_imx_netc_priv.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
do { \
6767
uint32_t id = 0x001100; \
6868
\
69-
mac_addr[0] = FREESCALE_OUI_B0; \
70-
mac_addr[1] = FREESCALE_OUI_B1; \
7169
/* Set MAC address locally administered bit (LAA) */ \
72-
mac_addr[2] = FREESCALE_OUI_B2 | 0x02; \
70+
mac_addr[0] = FREESCALE_OUI_B0 | 0x02; \
71+
mac_addr[1] = FREESCALE_OUI_B1; \
72+
mac_addr[2] = FREESCALE_OUI_B2; \
7373
mac_addr[3] = (id >> 16) & 0xff; \
7474
mac_addr[4] = (id >> 8) & 0xff; \
7575
mac_addr[5] = (id + n) & 0xff; \

0 commit comments

Comments
 (0)