ramips: fix MAC address assignment for ASUS RT-AC51U

The current MAC address assignment for the ASUS RT-AC51U is "wrong",
it actually should be the same as for the RT-AC54U. Fix it.

Thanks to Davide Fioravanti for checking this on his device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2020-05-18 21:26:20 +02:00 committed by AmadeusGhost
parent 0c188b6452
commit 964fad63d0
2 changed files with 5 additions and 2 deletions

View File

@ -117,7 +117,7 @@
&ethernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
mtd-mac-address = <&factory 0x22>;
mediatek,portmap = "wllll";
};

View File

@ -237,7 +237,6 @@ ramips_setup_macs()
case $board in
aigale,ai-br100|\
asus,rt-ac51u|\
asus,rt-n12p|\
asus,rt-n14u|\
bdcom,wap2100-sk|\
@ -273,6 +272,10 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 0x2e)
label_mac=$(mtd_get_mac_binary factory 0x4)
;;
asus,rt-ac51u)
wan_mac=$(mtd_get_mac_binary factory 0x28)
label_mac=$wan_mac
;;
dlink,dch-m225)
lan_mac=$(mtd_get_mac_ascii factory lanmac)
;;