[source] ramips: fix GL-inet GL-MT300N-V2 WAN/LAN MAC address
LEDE Commits
lede-commits at lists.infradead.org
Fri Jul 14 22:04:33 PDT 2017
mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/4531bc4267c7701e3615a806a0fde8212076699a
commit 4531bc4267c7701e3615a806a0fde8212076699a
Author: John Marrett <johnf at zioncluster.ca>
AuthorDate: Thu Jul 13 08:03:07 2017 -0400
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
https://github.com/domino-team/lede-1701/commit/efb0518
Signed-off-by: John Marrett <johnf at zioncluster.ca>
---
target/linux/ramips/base-files/etc/board.d/02_network | 3 +++
target/linux/ramips/dts/GL-MT300N-V2.dts | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 22b231b..f6129b5 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -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)
diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts
index e40c4cf..442fc09 100644
--- a/target/linux/ramips/dts/GL-MT300N-V2.dts
+++ b/target/linux/ramips/dts/GL-MT300N-V2.dts
@@ -80,7 +80,7 @@
};
ðernet {
- mtd-mac-address = <&factory 0x4000>;
+ mtd-mac-address = <&factory 0x4>;
};
&wmac {
More information about the lede-commits
mailing list