From cce5b49de482d8c31f792eac1fe6147ae83c0e4f Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 6 Jun 2024 16:54:38 +0800 Subject: [PATCH] mediatek: fix lan/wan macaddr for cmcc rax3000m The MAC address assigned to lan/wan was reversed on eMMC boards. Fixes: d3c193525e62 ("mediatek: add CMCC RAX3000M support") Signed-off-by: Tianling Shen Link: https://github.com/openwrt/openwrt/pull/15077 Signed-off-by: Hauke Mehrtens --- .../linux/mediatek/filogic/base-files/etc/board.d/02_network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network index 503171ae64..e8ce84dd4b 100644 --- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network +++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network @@ -129,8 +129,8 @@ mediatek_setup_macs() cmcc,rax3000m) case "$(cmdline_get_var root)" in /dev/mmc*) - wan_mac=$(mmc_get_mac_binary factory 0x2a) - lan_mac=$(mmc_get_mac_binary factory 0x24) + wan_mac=$(mmc_get_mac_binary factory 0x24) + lan_mac=$(mmc_get_mac_binary factory 0x2a) label_mac=$wan_mac ;; esac -- 2.30.2