[openwrt/openwrt] mediatek: fix lan/wan macaddr for cmcc rax3000m
LEDE Commits
lede-commits at lists.infradead.org
Sun Aug 11 10:19:54 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/cce5b49de482d8c31f792eac1fe6147ae83c0e4f
commit cce5b49de482d8c31f792eac1fe6147ae83c0e4f
Author: Tianling Shen <cnsztl at immortalwrt.org>
AuthorDate: Thu Jun 6 16:54:38 2024 +0800
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 <cnsztl at immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15077
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/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
More information about the lede-commits
mailing list