ramips: fix MAC address assignment for ASUS RT-AC51U
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 18 May 2020 19:26:20 +0000 (21:26 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 18 May 2020 19:51:06 +0000 (21:51 +0200)
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.

MAC assignment based on vendor firmware:

  2g    0x4 label
  5g    0x8004 label +4
  lan   0x22 label +4
  wan   0x28 label

Thanks to Davide Fioravanti for checking this on his device.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620a_asus_rt-ac51u.dts
target/linux/ramips/mt7620/base-files/etc/board.d/02_network

index e3a76037d4b70250f274da05a903a3f7980270ce..4c98c85dee3a8454672d478fd05a618bbf0a4fb2 100644 (file)
@@ -36,7 +36,7 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       mtd-mac-address = <&factory 0x22>;
 };
 
 &state_default {
index c1dbf8d71d0d9930fb9f5f1584a861717c42737d..417d3d02718e4885d472aa77268fdd2d3e167bc8 100755 (executable)
@@ -236,7 +236,6 @@ ramips_setup_macs()
 
        case $board in
        aigale,ai-br100|\
-       asus,rt-ac51u|\
        asus,rt-n12p|\
        asus,rt-n14u|\
        bdcom,wap2100-sk|\
@@ -272,6 +271,7 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_binary factory 0x2e)
                label_mac=$(mtd_get_mac_binary factory 0x4)
                ;;
+       asus,rt-ac51u|\
        asus,rt-ac54u)
                wan_mac=$(mtd_get_mac_binary factory 0x28)
                label_mac=$wan_mac