Skip to content

Commit 8b5e038

Browse files
pdgendtdkalowsk
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]> (cherry picked from commit f1b4c7c)
1 parent 3b7610e commit 8b5e038

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
@@ -62,10 +62,10 @@
6262
do { \
6363
uint32_t id = 0x001100; \
6464
\
65-
mac_addr[0] = FREESCALE_OUI_B0; \
66-
mac_addr[1] = FREESCALE_OUI_B1; \
6765
/* Set MAC address locally administered bit (LAA) */ \
68-
mac_addr[2] = FREESCALE_OUI_B2 | 0x02; \
66+
mac_addr[0] = FREESCALE_OUI_B0 | 0x02; \
67+
mac_addr[1] = FREESCALE_OUI_B1; \
68+
mac_addr[2] = FREESCALE_OUI_B2; \
6969
mac_addr[3] = (id >> 16) & 0xff; \
7070
mac_addr[4] = (id >> 8) & 0xff; \
7171
mac_addr[5] = (id + n) & 0xff; \

0 commit comments

Comments
 (0)