mediatek: fix lan/wan macaddr for cmcc rax3000m

The MAC address assigned to lan/wan was reversed on eMMC boards.

Fixes: d3c193525e ("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>
This commit is contained in:
Tianling Shen 2024-06-06 16:54:38 +08:00 committed by Hauke Mehrtens
parent a591f9cd14
commit cce5b49de4

View 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