Skip to content

Commit

Permalink
ramips: fix GL-inet GL-MT300N-V2 WAN/LAN MAC address
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
johnfzc authored and mkresin committed Jul 15, 2017
1 parent f7eb7f5 commit 4531bc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions target/linux/ramips/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ ramips_setup_macs()
e1700)
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
;;
gl-mt300n-v2)
wan_mac=$(mtd_get_mac_binary factory 4)
;;
hc5*61|\
hc5661a|\
hc5962)
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ramips/dts/GL-MT300N-V2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
};

&ethernet {
mtd-mac-address = <&factory 0x4000>;
mtd-mac-address = <&factory 0x4>;
};

&wmac {
Expand Down

0 comments on commit 4531bc4

Please sign in to comment.