mediatek: fix lan/wan macaddr for cmcc rax3000m
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 6 Jun 2024 08:54:38 +0000 (16:54 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 11 Aug 2024 17:18:39 +0000 (19:18 +0200)
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@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15077
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/filogic/base-files/etc/board.d/02_network

index 503171ae64896306ffaba4bd89f71a31dcf41083..e8ce84dd4b7648e35d6f67f3bfc0287c3c30c584 100644 (file)
@@ -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