From 964fad63d06a59c7d8b5a9cf1d5209e56e90cee3 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Mon, 18 May 2020 21:26:20 +0200 Subject: [PATCH] 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 --- target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts | 2 +- target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts index ef74094bba..e97b832d4a 100644 --- a/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts +++ b/target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts @@ -117,7 +117,7 @@ ðernet { status = "okay"; - mtd-mac-address = <&factory 0x4>; + mtd-mac-address = <&factory 0x22>; mediatek,portmap = "wllll"; }; diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index ba9d34bf60..1d37db58c7 100755 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -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) ;;