mediatek: fix lan/wan macaddr for jdcloud re-cp-03
authorTianling Shen <cnsztl@immortalwrt.org>
Thu, 6 Jun 2024 09:08:48 +0000 (17:08 +0800)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 15 Jul 2024 14:07:15 +0000 (16:07 +0200)
The MAC address assigned to lan/wan was reversed.

Fixes: 6e51ff88b053 ("mediatek: add support for JDCloud RE-CP-03")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
target/linux/mediatek/filogic/base-files/etc/board.d/02_network

index 421b911fbda979c2ce81f1ac4fae792dcded9acf..b38370fcba0c2095649ea65be0d9666ee85dc575 100644 (file)
@@ -145,9 +145,9 @@ mediatek_setup_macs()
                label_mac=$wan_mac
                ;;
        jdcloud,re-cp-03)
-               wan_mac=$(mmc_get_mac_binary factory 0x2a)
-               lan_mac=$(mmc_get_mac_binary factory 0x24)
-               label_mac=$lan_mac
+               wan_mac=$(mmc_get_mac_binary factory 0x24)
+               lan_mac=$(mmc_get_mac_binary factory 0x2a)
+               label_mac=$wan_mac
                ;;
        mercusys,mr90x-v1)
                label_mac=$(get_mac_binary "/tmp/tp_data/default-mac" 0)