Skip to content

Commit 4531bc4

Browse files
johnfzcmkresin
authored andcommitted
ramips: fix GL-inet GL-MT300N-V2 WAN/LAN MAC address
Correct MAC address lookup to appropriate offset based on vendor source. Override the WAN MAC to use the same address as LAN. The switch driver increments the base MAC address for the WAN vlan but the stock firmware uses the same MAC address for all interfaces. Based on vendor source commit domino-team/lede-1701@efb0518 Signed-off-by: John Marrett <[email protected]>
1 parent f7eb7f5 commit 4531bc4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ ramips_setup_macs()
381381
e1700)
382382
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
383383
;;
384+
gl-mt300n-v2)
385+
wan_mac=$(mtd_get_mac_binary factory 4)
386+
;;
384387
hc5*61|\
385388
hc5661a|\
386389
hc5962)

target/linux/ramips/dts/GL-MT300N-V2.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
};
8181

8282
&ethernet {
83-
mtd-mac-address = <&factory 0x4000>;
83+
mtd-mac-address = <&factory 0x4>;
8484
};
8585

8686
&wmac {

0 commit comments

Comments
 (0)