Prechádzať zdrojové kódy

ramips: fix lan and wan mac addresses for Cudy WR1000

Lan and Wan addresses are swapped compared to the original firmware.
This patch fixes this problem

Signed-off-by: Davide Fioravanti <[email protected]>
Davide Fioravanti 6 rokov pred
rodič
commit
0891358e4b

+ 1 - 0
target/linux/ramips/base-files/etc/board.d/02_network

@@ -505,6 +505,7 @@ ramips_setup_macs()
 	8devices,carambola|\
 	8devices,carambola|\
 	alfa-network,w502u|\
 	alfa-network,w502u|\
 	arcwireless,freestation5|\
 	arcwireless,freestation5|\
+	cudy,wr1000|\
 	netgear,wnce2001)
 	netgear,wnce2001)
 		wan_mac=$(mtd_get_mac_binary factory 46)
 		wan_mac=$(mtd_get_mac_binary factory 46)
 		;;
 		;;

+ 1 - 1
target/linux/ramips/dts/mt7628an_cudy_wr1000.dts

@@ -139,6 +139,6 @@
 };
 };
 
 
 &ethernet {
 &ethernet {
-	mtd-mac-address = <&factory 0x2e>;
+	mtd-mac-address = <&factory 0x28>;
 	mediatek,portmap = "llllw";
 	mediatek,portmap = "llllw";
 };
 };