Skip to content

Commit

Permalink
mediatek: fix lan/wan macaddr for cmcc rax3000m
Browse files Browse the repository at this point in the history
The MAC address assigned to lan/wan was reversed on eMMC boards.

Fixes: d3c1935 ("mediatek: add CMCC RAX3000M support")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: openwrt#15077
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information
1715173329 authored and hauke committed Aug 11, 2024
1 parent a591f9c commit cce5b49
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cce5b49

Please sign in to comment.