ramips: fix lan and wan mac addresses for Cudy WR1000
authorDavide Fioravanti <pantanastyle@gmail.com>
Sat, 10 Aug 2019 22:38:53 +0000 (00:38 +0200)
committerDavide Fioravanti <pantanastyle@gmail.com>
Sun, 11 Aug 2019 21:16:03 +0000 (23:16 +0200)
Lan and Wan addresses are swapped compared to the original firmware.
This patch fixes this problem

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
target/linux/ramips/base-files/etc/board.d/02_network
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts

index 5fe61c31deec50fd38dc29771c5fee529c1ec265..ca111c9d4cd71dbef61a0a21e701515b0c644007 100755 (executable)
@@ -505,6 +505,7 @@ ramips_setup_macs()
        8devices,carambola|\
        alfa-network,w502u|\
        arcwireless,freestation5|\
+       cudy,wr1000|\
        netgear,wnce2001)
                wan_mac=$(mtd_get_mac_binary factory 46)
                ;;
index ff0b9badd171c81da0e5ed3a33f20e62b7d3a656..ad81e8303dd86f8db13bc922067ade55d45127a3 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x2e>;
+       mtd-mac-address = <&factory 0x28>;
        mediatek,portmap = "llllw";
 };