ath79: fix swapped LAN/WAN MAC address for Archer C60 v1/v2
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Mar 2020 14:37:34 +0000 (15:37 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Mar 2020 15:09:16 +0000 (16:09 +0100)
The MAC addresses for lan/wan are swapped compared to the vendor
firmware. This adjusts to vendor configuration, which is:

lan   *:7b   label
wan   *:7c   label+1
2.4g  *:7b   label
5g    *:7a   label-1

Only one address is stored in <&mac 0x8>, corresponding to the label.

This has been checked on revisions v1, v2 and v3.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi

index 9b51ebf68920b815dc2aa533062799d1a8d9cfc3..abbccea08f5827a384d77d50e30dee8688a4b8ff 100644 (file)
@@ -15,7 +15,7 @@
                led-failsafe = &led_power;
                led-running = &led_power;
                led-upgrade = &led_power;
-               label-mac-device = &eth0;
+               label-mac-device = &eth1;
        };
 
        keys {
        phy-handle = <&swphy4>;
 
        mtd-mac-address = <&mac 0x8>;
+       mtd-mac-address-increment = <1>;
 };
 
 &eth1 {
        status = "okay";
 
        mtd-mac-address = <&mac 0x8>;
-       mtd-mac-address-increment = <1>;
 };
 
 &wmac {